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

No mention of unwrap_or and unwrap_or_else in 18.3. Option & unwrap #1835

Open
svetli97 opened this issue Apr 10, 2024 · 0 comments
Open

No mention of unwrap_or and unwrap_or_else in 18.3. Option & unwrap #1835

svetli97 opened this issue Apr 10, 2024 · 0 comments

Comments

@svetli97
Copy link

unwrap_or and unwrap_or_else are two of the most commonly needed ways of handling defaults for Option. And yet they aren't even mentioned in this section. I think it is important to give examples with them in section 18.3.4. "Unpacking options and defaults".

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

No branches or pull requests

1 participant