From 2d8aaa95da2fca97b19926e94aa56176a4284044 Mon Sep 17 00:00:00 2001 From: stomar Date: Thu, 2 Mar 2017 10:31:56 +0000 Subject: 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 --- string.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'string.c') 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" -- cgit v1.2.3