From 9597d4bb45bfda2999a5e24a569e3fee5d386d1c Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 6 Oct 2021 13:49:58 +0200 Subject: [PATCH] Fix typo --- language/pattern_matching_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]