aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 10:31:56 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 10:31:56 +0000
commit2d8aaa95da2fca97b19926e94aa56176a4284044 (patch)
treedf8a69529f2c625d1d58dcc6f81c715e007645bd /string.c
parent2df92ed933a10b6d95785a9a53280570d5097956 (diff)
downloadruby-2d8aaa95da2fca97b19926e94aa56176a4284044.tar.gz
string.c: restore documentation for String#<<
* string.c: [DOC] restore documentation for String#<< which became undocumented with r56021; fix a typo. [ruby-core:79865] [Bug #13268] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/string.c b/string.c
index 91040b14f8..8dd6f642a4 100644
--- a/string.c
+++ b/string.c
@@ -2868,6 +2868,9 @@ rb_str_concat_literals(size_t num, const VALUE *strary)
}
/*
+ * Document-method: String#<<
+ * Document-method: String#concat
+ *
* call-seq:
* str << integer -> str
* str.concat(integer1, integer2,...) -> str
@@ -2882,7 +2885,7 @@ rb_str_concat_literals(size_t num, const VALUE *strary)
* a = "hello "
* a << "world" #=> "hello world"
* a.concat(33) #=> "hello world!"
- * a #=> "hollo world!"
+ * a #=> "hello world!"
*
* b = "sn"
* b.concat(b, b) #=> "snsnsn"