aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-24 02:56:30 +0000
committerayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-24 02:56:30 +0000
commit7e76ab5e5e083d195647240580d1581f019396d3 (patch)
tree24eb05fb0d9556d2db35fda7810709cce6173f54
parent7a1180c7457b9ac79d4fa37e296a74e0e6655f79 (diff)
downloadruby-7e76ab5e5e083d195647240580d1581f019396d3.tar.gz
* string.c (rb_str_prepend): Fix documentation for String#prepend.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--string.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e405bcb9c..90cc149d5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 24 11:48:07 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
+
+ * string.c (rb_str_prepend): Fix documentation for String#prepend.
+ Patched from Franck Verrot via http://github.com/ruby/ruby/pull/98
+
Fri Feb 24 10:08:33 2012 Eric Hodel <drbrain@segment7.net>
* lib/net/http.rb (Net::HTTP#transport_request): Fix infinite loop
diff --git a/string.c b/string.c
index 2ce6504fe1..e3e5fb99ac 100644
--- a/string.c
+++ b/string.c
@@ -2147,9 +2147,9 @@ rb_str_concat(VALUE str1, VALUE str2)
*
* Prepend---Prepend the given string to <i>str</i>.
*
- * a = "world"
- * a.prepend("hello ") #=> "hello world"
- * a #=> "hello world"
+ * a = "world"
+ * a.prepend("hello ") #=> "hello world"
+ * a #=> "hello world"
*/
static VALUE