Skip to content

Commit

Permalink
pattern_matching.rd の表現を他のページに合わせた(key -> キー(ハッシュの文脈で))
Browse files Browse the repository at this point in the history
Co-authored-by: shuichi <[email protected]>

cf. #2773 (review)
  • Loading branch information
sanfrecce-osaka committed Jan 6, 2023
1 parent 09fa165 commit 1a446ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refm/doc/spec/pattern_matching.rd
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end
#@end

#@# while the hash matches even if there are other keys besides the specified part:
一方 Hash パターン は一部の key だけ指定している場合(指定している key 以外にも key が存在する場合)でもマッチします。
一方 Hash パターン は一部のキーだけ指定している場合(指定しているキー以外にもキーが存在する場合)でもマッチします。

#@samplecode
case {a: 1, b: 2, c: 3}
Expand Down Expand Up @@ -172,7 +172,7 @@ end
#@samplecode
case {a: 1, b: 2}
#@# in {a: Integer, **nil} # this will not match the pattern having keys other than a:
in {a: Integer, **nil} # これは a: 以外に key を持つパターンのためマッチしません
in {a: Integer, **nil} # これは a: 以外にキーを持つパターンのためマッチしません
"matched a part"
in {a: Integer, b: Integer, **nil}
"matched a whole"
Expand Down

0 comments on commit 1a446ac

Please sign in to comment.