diff options
author | tomoya ishida <[email protected]> | 2024-12-19 02:08:15 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-18 12:08:15 -0500 |
commit | 477c505ac0d4d23a860ffafbb487f7598aa89ca3 (patch) | |
tree | 76bc043e37238c9ed96a3d2bec5d7da679ad0d01 /doc/syntax/pattern_matching.rdoc | |
parent | 528ec7060464d30359e593055df6b53362cd1060 (diff) |
[DOC] Fix output examples containing old Hash#inspect format
The inspect format was intentionally changed as an outcome of
[Bug #20433] [ruby-core:118668], but some documentation update
was missing, as [Bug #20962] pointed out. Update some output
examples that clearly use Hash#inspect.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12384
Merged-By: XrXr
Diffstat (limited to 'doc/syntax/pattern_matching.rdoc')
-rw-r--r-- | doc/syntax/pattern_matching.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc index 6a30380f46..0b37ebdda7 100644 --- a/doc/syntax/pattern_matching.rdoc +++ b/doc/syntax/pattern_matching.rdoc @@ -247,7 +247,7 @@ The "rest" part of a pattern also can be bound to a variable: else "not matched" end - #=> "matched: 1, {:b=>2, :c=>3}" + #=> "matched: 1, {b: 2, c: 3}" Binding to variables currently does NOT work for alternative patterns joined with <code>|</code>: |