Skip to content

Commit

Permalink
Fix BitClust::SyntaxHighlighter::CompileError
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed May 10, 2024
1 parent ae2c5fa commit c2d3a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refm/doc/spec/call.rd
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ foo{ p [_1, _2, _3] } # => ["a", "b", "c"]

ブロックパラメータと番号指定パラメータを同時に使うことはできません。

#@samplecode
//emlist{
def foo
yield "a","b","c"
end

foo {|a, b, c| p [_1, a] } # => ordinary parameter is defined (SyntaxError)
#@end
//}

なお、ブロック内で _2 以降が使用されているかどうかで、_1 の意味が異なります。

Expand Down

0 comments on commit c2d3a9c

Please sign in to comment.