ruby-changes:45685
From: stomar <ko1@a...>
Date: Thu, 2 Mar 2017 19:32:01 +0900 (JST)
Subject: [ruby-changes:45685] stomar:r57758 (trunk): string.c: restore documentation for String#<<
stomar 2017-03-02 19:31:56 +0900 (Thu, 02 Mar 2017) New Revision: 57758 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57758 Log: 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] Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 57757) +++ string.c (revision 57758) @@ -2868,6 +2868,9 @@ rb_str_concat_literals(size_t num, const https://github.com/ruby/ruby/blob/trunk/string.c#L2868 } /* + * 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 https://github.com/ruby/ruby/blob/trunk/string.c#L2885 * a = "hello " * a << "world" #=> "hello world" * a.concat(33) #=> "hello world!" - * a #=> "hollo world!" + * a #=> "hello world!" * * b = "sn" * b.concat(b, b) #=> "snsnsn" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/