summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-12-24 17:14:48 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-12-24 17:15:24 +0900
commit85f01794795521e29e64e06ead416cbd3d52c55c (patch)
tree5ce54a2124052c2245dc49da12e1aa39100a9d05
parent1415653c84602b3ac4ee449858783aacd8af81ed (diff)
doc/keywords.rdoc: mention pattern matching in the `in` keyword section
-rw-r--r--doc/keywords.rdoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/keywords.rdoc b/doc/keywords.rdoc
index a74126823d..bfd0bec8da 100644
--- a/doc/keywords.rdoc
+++ b/doc/keywords.rdoc
@@ -82,6 +82,8 @@ if::
in::
Used to separate the iterable object and iterator variable in a +for+ loop.
See {control expressions}[rdoc-ref:syntax/control_expressions.rdoc]
+ It also serves as a pattern in a +case+ expression. See
+ See {pattern matching}[rdoc-ref:syntax/pattern_matching.rdoc]
module::
Creates or opens a module. See {modules and classes