* 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
This commit is contained in:
matz 2006-10-07 15:55:17 +00:00
parent 31fa19e6b5
commit 9436f5b0cb
2 changed files with 6 additions and 1 deletions

View file

@ -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>