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
commitd2133ab996a48110c72da25855d1e6f59d9788b4 (patch)
tree15864b2efc701ab5f48441f9f15f0a2b187049ca /string.c
parentf25b74a4e03ae864d0701950c8ed1d34e6f894bd (diff)
* string.c (rb_str_scan): small documentation fix.
[ruby-core:09007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@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 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"
*
* <em>produces:</em>