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
This commit is contained in:
stomar 2017-03-02 10:31:56 +00:00
parent 033c4a083d
commit a698d99703

View File

@ -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"