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

in 6.3. Concise Control Flow with if let there is a typo #3999

Closed
KianMehrabi opened this issue Aug 1, 2024 · 1 comment · Fixed by #4113
Closed

in 6.3. Concise Control Flow with if let there is a typo #3999

KianMehrabi opened this issue Aug 1, 2024 · 1 comment · Fixed by #4113

Comments

@KianMehrabi
Copy link

this line

the part i have problem with

the corresponding match arm. The code in the if let block isn’t run if the
value doesn’t match the pattern.

after isn’t there is missing going to

@chriskrycho
Copy link
Contributor

chriskrycho commented Sep 27, 2024

Ah, this is a quirky bit of English—the combination of the contraction with a slightly less common construction. It is saying “The code in the if let block is not run [by the program when it executes] if the value does not match the pattern.” I think changing from “isn’t run” to “will not be run” is probably a reasonable change here, if you’d like to open a PR to do that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants