Skip to content

Fix Listing 19-10 for ch19-02-refutability chapter #4364

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DJPoland
Copy link

The listing is supposed to show why it doesn't make sense to use "if let" with an irrefutable pattern. Currently the live book is showing a "let else" which could cause confusion for readers. For example: https://doc.rust-lang.org/book/ch19-02-refutability.html#listing-19-10. This commit should fix the confusion.

The listing is supposed to show why it doesn't make
sense to use "if let" with an irrefutable pattern.
Currently the live book is showing a "let else"
which could cause confusion for readers.
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 this pull request may close these issues.

1 participant