summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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>