You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inaccuracy in the documentation for Option::unwrap_or_default #100054
It appears that the example was wrongly adapted from Result::unwrap_or_default, however the example does not work here because parse will never return None, its returns a Result. It appears that ideally a more fitting example should be written.
Activity
ArtifyCZ commentedon Aug 5, 2022
I think there could be for people like this (no offensive) type annotations.
GuillaumeGomez commentedon Sep 25, 2022
The example could be simplified indeed.
Rollup merge of rust-lang#102259 - gimbles:patch-1, r=joshtriplett
Rollup merge of rust-lang#102283 - GuillaumeGomez:option-code-example…
Rollup merge of rust-lang#102283 - GuillaumeGomez:option-code-example…
Auto merge of rust-lang#102283 - GuillaumeGomez:option-code-example-u…