diff --git a/string.c b/string.c index 2ce6504fe17bd1..e3e5fb99aca002 100644 --- a/string.c +++ b/string.c @@ -2147,9 +2147,9 @@ rb_str_concat(VALUE str1, VALUE str2) * * Prepend---Prepend the given string to str. * - * a = "world" - * a.prepend("hello ") #=> "hello world" - * a #=> "hello world" + * a = "world" + * a.prepend("hello ") #=> "hello world" + * a #=> "hello world" */ static VALUE