Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the description of regexp alternations #4661

Merged
merged 1 commit into from
Jul 22, 2021
Merged

Fixed the description of regexp alternations #4661

merged 1 commit into from
Jul 22, 2021

Conversation

UlyssesZh
Copy link
Contributor

No description provided.

@nobu
Copy link
Member

nobu commented Jul 20, 2021

In terms of the syntax of regular expressions, it is correct that | is a binary operator, it can just be followed by other alternatives.
So I'm not sure if the word “several” is appropriate here.

It might make sense to provide examples of more than two alternatives.

@nobu nobu merged commit e4b68ab into ruby:master Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants