diff options
author | Ulysses Zhan <[email protected]> | 2021-07-22 13:10:57 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-22 14:10:57 +0900 |
commit | e4b68ab700b1e8fea162a63ea3c6e856442cc740 (patch) | |
tree | 5cd3056f5ae85b0e47cb63984b67a4b239bbc8ad /doc/regexp.rdoc | |
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 <[email protected]>
Diffstat (limited to 'doc/regexp.rdoc')
-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"> |