Skip to content

Commit

Permalink
Merge pull request #2882 from znz/fix-BitClust__SyntaxHighlighter__Co…
Browse files Browse the repository at this point in the history
…mpileError

Fix BitClust::SyntaxHighlighter::CompileError
  • Loading branch information
znz authored May 10, 2024
2 parents d369d2d + c2d3a9c commit 58b73ef
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 58b73ef

Please sign in to comment.