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

[DOC] Fix typo and language

This commit is contained in:
Marcus Stollsteimer 2019-12-24 16:57:30 +01:00
parent 8c017824c8
commit 3679023df8

View file

@ -68,9 +68,9 @@ a backslash literally, backslash-escape it: <tt>\\\\</tt>.
/1 \+ 2 = 3\?/.match('Does 1 + 2 = 3?') #=> #<MatchData "1 + 2 = 3?">
/a\\\\b/.match('a\\\\b') #=> #<MatchData "a\\b">
Patterns behave like double-quoted strings so can contain the same
backslash escapes (the meaning of <tt>\s</tt> is different a little however,
see bellow[#label-Character+Classes]).
Patterns behave like double-quoted strings and can contain the same
backslash escapes (the meaning of <tt>\s</tt> is different, however,
see below[#label-Character+Classes]).
/\s\u{6771 4eac 90fd}/.match("Go to 東京都")
#=> #<MatchData " 東京都">