diff options
author | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-02 10:31:56 +0000 |
---|---|---|
committer | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-02 10:31:56 +0000 |
commit | a698d99703fc55c83533ab6fbe25c1797e8746c6 (patch) | |
tree | df8a69529f2c625d1d58dcc6f81c715e007645bd /string.c | |
parent | 033c4a083d724f986bba85c769380ab0b579a484 (diff) | |
download | ruby-a698d99703fc55c83533ab6fbe25c1797e8746c6.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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |