diff options
author | Ulysses Zhan <2938747508@qq.com> | 2021-07-22 13:10:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 14:10:57 +0900 |
commit | e4b68ab700b1e8fea162a63ea3c6e856442cc740 (patch) | |
tree | 5cd3056f5ae85b0e47cb63984b67a4b239bbc8ad /doc | |
parent | d6b8819b7939c2689a36f13ffae4e6d1442f5e3a (diff) |
[DOC] Fixed the description of regexp alternations [ci skip]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4661
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/regexp.rdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index e25f10fc66..5ec64907f5 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -372,8 +372,8 @@ then matches a literal <i>)</i>: == 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"> |