Skip to content

Commit 99503ab

Browse files
joshuay03nobu
authored andcommitted
Escape Binding reference in pattern matching docs
1 parent 80ab424 commit 99503ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/syntax/pattern_matching.rdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ For hash patterns, even a simpler form exists: key-only specification (without a
221221
end
222222
#=> "matched: 1"
223223

224-
Binding works for nested patterns as well:
224+
\Binding works for nested patterns as well:
225225

226226
case {name: 'John', friends: [{name: 'Jane'}, {name: 'Rajesh'}]}
227227
in name:, friends: [{name: first_friend}, *]
@@ -249,7 +249,7 @@ The "rest" part of a pattern also can be bound to a variable:
249249
end
250250
#=> "matched: 1, {b: 2, c: 3}"
251251

252-
Binding to variables currently does NOT work for alternative patterns joined with <code>|</code>:
252+
\Binding to variables currently does NOT work for alternative patterns joined with <code>|</code>:
253253

254254
case {a: 1, b: 2}
255255
in {a: } | Array

0 commit comments

Comments
 (0)