[前][次][番号順一覧][スレッド一覧]

ruby-changes:61161

From: Kazuhiro <ko1@a...>
Date: Sat, 9 May 2020 14:23:02 +0900 (JST)
Subject: [ruby-changes:61161] 0a86679a7b (master): Fix a typo [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=0a86679a7b

From 0a86679a7b430242a9618bd26857e68f6bcd6278 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Sat, 9 May 2020 14:22:33 +0900
Subject: Fix a typo [ci skip]


diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb
index f84d84c..91ad23b 100644
--- a/spec/ruby/language/pattern_matching_spec.rb
+++ b/spec/ruby/language/pattern_matching_spec.rb
@@ -403,7 +403,7 @@ ruby_version_is "2.7" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/pattern_matching_spec.rb#L403
         }.should raise_error(SyntaxError, /illegal variable in alternative pattern/)
       end
 
-      it "support undescore prefixed variables in alternation" do
+      it "support underscore prefixed variables in alternation" do
         eval(<<~RUBY).should == true
           case [0, 1]
             in [1, _]
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]