Skip to content

Commit

Permalink
変数のピン留めの冒頭の訳を修正
Browse files Browse the repository at this point in the history
Co-authored-by: shuichi <shuichi.shp.code@gmail.com>

cf. #2773 (comment)

> 「変数の束縛の機能」の話ではなく、「変数の束縛の機能の存在のせいで、制限が生まれる」という話だと思われます。
>
> そもそも原文(Due to the variable binding feature, ...)に対して、あんまり親切とは言えない・無くなっても困らないレベルの中途半端な言及の仕方だなぁと感じているので、変更案では、ちょっと手厚めにしています。
  • Loading branch information
sanfrecce-osaka committed Feb 4, 2023
1 parent c6bc5e0 commit f924b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refm/doc/spec/pattern_matching.rd
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ end
===[a:variable_pinning] 変数のピン留め

#@# Due to the variable binding feature, existing local variable can not be straightforwardly used as a sub-pattern:
変数の束縛の機能では存在しているローカル変数を サブパターン(Array/Find/Hashパターン構文の <subpattern> の部分) としてそのまま利用することはできません。
既に存在しているローカル変数は、サブパターン(Array/Find/Hashパターン構文の <subpattern> の部分) として変数の値をそのまま使うことができません。(これは、変数への束縛の機能を実現するための制限です。)

#@samplecode
expectation = 18
Expand Down

0 comments on commit f924b97

Please sign in to comment.