diff --git a/ChangeLog b/ChangeLog index c1b937f81b..4210108cb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 7 23:53:08 2006 Yukihiro Matsumoto + + * string.c (rb_str_scan): small documentation fix. + [ruby-core:09007] + Sat Oct 7 23:44:33 2006 Yukihiro Matsumoto * bignum.c (rb_big_rshift): a bug in right shift of negative diff --git a/string.c b/string.c index 50a83e49fa..0da225d3a8 100644 --- a/string.c +++ b/string.c @@ -4059,7 +4059,7 @@ scan_once(VALUE str, VALUE pat, long *start) * * a.scan(/\w+/) {|w| print "<<#{w}>> " } * print "\n" - * a.scan(/(.)(.)/) {|a,b| print b, a } + * a.scan(/(.)(.)/) {|x,y| print y, x } * print "\n" * * produces: