10000 Update _regexp.rdoc examples Regexp.escape · ruby/ruby@af12efe · GitHub
[go: up one dir, main page]

Skip to content

Commit af12efe

Browse files
authored
Update _regexp.rdoc examples Regexp.escape
1 parent c8ddc0a commit af12efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_regexp.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ To match a metacharacter literally, backslash-escape it:
205205
To match a backslash literally, backslash-escape it:
206206

207207
/\./.match('\.') # => #<MatchData ".">
208-
/\\./.match('\.') # => #<MatchData "\\.">
208+
/\\./.match('\.') # => #<MatchData "\.">
209209

210210
Method Regexp.escape returns an escaped string:
211211

0 commit comments

Comments
 (0)
0