mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix a typo [ci skip]
This commit is contained in:
parent
4314c05377
commit
0a86679a7b
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ ruby_version_is "2.7" do
|
||||||
}.should raise_error(SyntaxError, /illegal variable in alternative pattern/)
|
}.should raise_error(SyntaxError, /illegal variable in alternative pattern/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "support undescore prefixed variables in alternation" do
|
it "support underscore prefixed variables in alternation" do
|
||||||
eval(<<~RUBY).should == true
|
eval(<<~RUBY).should == true
|
||||||
case [0, 1]
|
case [0, 1]
|
||||||
in [1, _]
|
in [1, _]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue