diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-20 09:19:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-20 09:32:42 +0900 |
commit | db166290088fb7d39d01f68b9860253893d4f1a7 (patch) | |
tree | 68c1b2c3e7ff00ed5cd6a214e6644a28dca22261 /test/ruby/test_struct.rb | |
parent | 2898367b3a1de00ca78067cc17dd4d1f8df37778 (diff) |
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
Diffstat (limited to 'test/ruby/test_struct.rb')
-rw-r--r-- | test/ruby/test_struct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 884fbe00ed..9438160a6f 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -113,7 +113,7 @@ module TestStruct assert_equal @Struct::KeywordInitTrue.new(a: 1, b: 2).values, @Struct::KeywordInitFalse.new(1, 2).values assert_equal "#{@Struct}::KeywordInitFalse", @Struct::KeywordInitFalse.inspect assert_equal "#{@Struct}::KeywordInitTrue(keyword_init: true)", @Struct::KeywordInitTrue.inspect - # eval is neede to prevent the warning duplication filter + # eval is needed to prevent the warning duplication filter k = eval("Class.new(@Struct::KeywordInitFalse) {def initialize(**) end}") assert_warn(/The last argument is used as the keyword parameter/) {k.new(a: 1, b: 2)} k = Class.new(@Struct::KeywordInitTrue) {def initialize(**) end} |