ruby-changes:64555
From: Yusuke <ko1@a...>
Date: Thu, 24 Dec 2020 17:15:41 +0900 (JST)
Subject: [ruby-changes:64555] 85f0179479 (master): doc/keywords.rdoc: mention pattern matching in the `in` keyword section
https://git.ruby-lang.org/ruby.git/commit/?id=85f0179479 From 85f01794795521e29e64e06ead416cbd3d52c55c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 24 Dec 2020 17:14:48 +0900 Subject: doc/keywords.rdoc: mention pattern matching in the `in` keyword section diff --git a/doc/keywords.rdoc b/doc/keywords.rdoc index a741268..bfd0bec 100644 --- a/doc/keywords.rdoc +++ b/doc/keywords.rdoc @@ -82,6 +82,8 @@ if:: https://github.com/ruby/ruby/blob/trunk/doc/keywords.rdoc#L82 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/