Skip to content

Commit

Permalink
doc: Remove description of experimental warnings related pattern matc…
Browse files Browse the repository at this point in the history
…hing from documentation

Ruby 3.2.0 has been released and all experimental warnings about pattern matching have been removed.
Experimental warnings about pattern matching are no longer output, so I remove description about it from documentation as well.

cf. https://bugs.ruby-lang.org/issues/18585
cf. db6b23c
cf. https://twitter.com/k_tsj/status/1606956336037900289?s=20&t=-_PSYLhYPtYsB9FZhtXl5A
  • Loading branch information
sanfrecce-osaka authored and hsbt committed Sep 24, 2024
1 parent a80a9cf commit 6b46060
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/syntax.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/syntax/control_expressions.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 0 additions & 1 deletion error.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ rb_warning_category_enabled_p(rb_warning_category_t category)
*
* +:experimental+ ::
* experimental features
* * Pattern matching
*
* +:performance+ ::
* performance hints
Expand Down

0 comments on commit 6b46060

Please sign in to comment.