diff --git a/language/pattern_matching_spec.rb b/language/pattern_matching_spec.rb index 7abb9b8741..d9f4cc9751 100644 --- a/language/pattern_matching_spec.rb +++ b/language/pattern_matching_spec.rb @@ -42,7 +42,7 @@ RUBY end - it "captures both predecing and following elements to the pattern" do + it "captures both preceding and following elements to the pattern" do eval(<<~RUBY).should == [[0, 1], [3, 4]] case [0, 1, 2, 3, 4] in [*pre, 2, *post]