From 91b6a97613656e66e426f1b69f928e43290b1aee Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 28 Nov 2024 21:07:27 +0900 Subject: [PATCH] Fix example of array pattern that results in a SyntaxError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ❯ 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 | ``` --- config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.yml b/config.yml index 0f50f30b94..2361402a53 100644 --- a/config.yml +++ b/config.yml @@ -996,8 +996,8 @@ nodes: foo in [1, 2] ^^^^^^^^^^^^^ - foo in *1 - ^^^^^^^^^ + foo in *bar + ^^^^^^^^^^^ foo in Bar[] ^^^^^^^^^^^^