1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* re.c (last_match): add "thread and method" to the scope.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-09-30 01:08:44 +00:00
parent b59109a844
commit 331fdbe822

2
re.c
View file

@ -3392,7 +3392,7 @@ match_setter(VALUE val)
* <code>MatchData</code> object.
* <em>n</em> can be a string or symbol to reference a named capture.
*
* Note that the <code>last_match</code> is local to the scope
* Note that the <code>last_match</code> is local to the thread and method scope
* of the method that did the pattern match.
*
* /c(.)t/ =~ 'cat' #=> 0