diff --git a/doc/syntax.rdoc b/doc/syntax.rdoc index 6ca5843512..cb427b6f0f 100644 --- a/doc/syntax.rdoc +++ b/doc/syntax.rdoc @@ -12,7 +12,7 @@ Assignment[rdoc-ref:syntax/assignment.rdoc] :: +if+, +unless+, +while+, +until+, +for+, +break+, +next+, +redo+ {Pattern matching}[rdoc-ref:syntax/pattern_matching.rdoc] :: - Experimental structural pattern matching and variable binding syntax + Structural pattern matching and variable binding syntax Methods[rdoc-ref:syntax/methods.rdoc] :: Method and method argument syntax diff --git a/doc/syntax/control_expressions.rdoc b/doc/syntax/control_expressions.rdoc index 9126289389..3de6cd293f 100644 --- a/doc/syntax/control_expressions.rdoc +++ b/doc/syntax/control_expressions.rdoc @@ -255,7 +255,7 @@ Again, the +then+ and +else+ are optional. The result value of a +case+ expression is the last value executed in the expression. -Since Ruby 2.7, +case+ expressions also provide a more powerful experimental +Since Ruby 2.7, +case+ expressions also provide a more powerful pattern matching feature via the +in+ keyword: case {a: 1, b: 2, c: 3} diff --git a/error.c b/error.c index ef646c55c7..acd92c893d 100644 --- a/error.c +++ b/error.c @@ -217,7 +217,6 @@ rb_warning_category_enabled_p(rb_warning_category_t category) * * +:experimental+ :: * experimental features - * * Pattern matching * * +:performance+ :: * performance hints