aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--string.c5
1 files changed, 4 insertions, 1 deletions
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"