mirror of
https://github.com/ruby/ruby.git
synced 2026-01-29 05:24:23 +00:00
Fix example of array pattern that results in a SyntaxError
```
❯ ruby --parser=prism --dump=parsetree -e "foo in *1"
ruby: -e:1: syntax error found (SyntaxError)
> 1 | foo in *1
| ^ unexpected integer, expecting end-of-input
2 |
```
This commit is contained in:
parent
b1f992e027
commit
90404ca460
@ -1031,8 +1031,8 @@ nodes:
|
||||
foo in [1, 2]
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
foo in *1
|
||||
^^^^^^^^^
|
||||
foo in *bar
|
||||
^^^^^^^^^^^
|
||||
|
||||
foo in Bar[]
|
||||
^^^^^^^^^^^^
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user