ruby-changes:66864
From: Ulysses <ko1@a...>
Date: Thu, 22 Jul 2021 14:11:11 +0900 (JST)
Subject: [ruby-changes:66864] e4b68ab700 (master): [DOC] Fixed the description of regexp alternations [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=e4b68ab700 From e4b68ab700b1e8fea162a63ea3c6e856442cc740 Mon Sep 17 00:00:00 2001 From: Ulysses Zhan <2938747508@q...> Date: Thu, 22 Jul 2021 13:10:57 +0800 Subject: [DOC] Fixed the description of regexp alternations [ci skip] --- doc/regexp.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index e25f10f..5ec6490 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -372,8 +372,8 @@ then matches a literal <i>)</i>: https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#L372 == Alternation -The vertical bar metacharacter (<tt>|</tt>) combines two expressions into -a single one that matches either of the expressions. Each expression is an +The vertical bar metacharacter (<tt>|</tt>) combines several expressions into +a single one that matches any of the expressions. Each expression is an <i>alternative</i>. /\w(and|or)\w/.match("Feliformia") #=> #<MatchData "form" 1:"or"> -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/