From 9436f5b0cb325c9273f3affd620b453326fbe24c Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 7 Oct 2006 15:55:17 +0000 Subject: [PATCH] * string.c (rb_str_scan): small documentation fix. [ruby-core:09007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ string.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7851dc0e86..e7d0eeeea6 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 19c1a65922..828bc07621 100644 --- a/string.c +++ b/string.c @@ -4239,7 +4239,7 @@ scan_once(str, pat, 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: