summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-07 15:55:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-07 15:55:17 +0000
commit9436f5b0cb325c9273f3affd620b453326fbe24c (patch)
tree575dc8f290625cf1ce425c80697dca3cc59d215e /string.c
parent31fa19e6b58930bfe6652b0ed9b3c76507671265 (diff)
* 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
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
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"
*
* <em>produces:</em>