зеркало из https://github.com/github/ruby.git
* doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
Reported by Alex Johnson on ruby-doc.org git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
078ae7dd80
Коммит
7b6deb9c4b
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 13 10:55:43 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
|
||||
Reported by Alex Johnson on ruby-doc.org
|
||||
|
||||
Wed Nov 13 10:43:19 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* hash.c: [DOC] Adds an example for Hash#store
|
||||
|
|
|
@ -608,7 +608,7 @@ Example:
|
|||
|
||||
m = /s(\w{2}).*(c)/.match('haystack') #=> #<MatchData "stac" 1:"ta" 2:"c">
|
||||
$~ #=> #<MatchData "stac" 1:"ta" 2:"c">
|
||||
Regexp.latch_match #=> #<MatchData "stac" 1:"ta" 2:"c">
|
||||
Regexp.last_match #=> #<MatchData "stac" 1:"ta" 2:"c">
|
||||
|
||||
$& #=> "stac"
|
||||
# same as m[0]
|
||||
|
|
Загрузка…
Ссылка в новой задаче