diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 16:20:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 16:20:09 +0000 |
commit | 5ee565d5a784e9f319b7b81be09520073c39ebaf (patch) | |
tree | 58765905b8eceb195eef5379410ba36d319ab5e2 /string.c | |
parent | a5d26fb862564e779df115671ccfed32f932c562 (diff) |
merge revision(s) 57758: [Backport #13268]
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/branches/ruby_2_4@57919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2798,6 +2798,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 @@ -2812,7 +2815,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" |