We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50244ad commit b1e4066Copy full SHA for b1e4066
text/0000-try-trait-v2.md
@@ -322,7 +322,7 @@ The previous desugaring of `x?` was
322
```rust
323
match Try::into_result(x) {
324
Ok(v) => v,
325
- Err(e) => Try::from_error(From::from(e)),
+ Err(e) => return Try::from_error(From::from(e)),
326
}
327
```
328
@@ -331,7 +331,7 @@ The new one is very similar:
331
332
match Bubble::branch(x) {
333
ControlFlow::Continue(v) => v,
334
- ControlFlow::Break(h) => Try::from_holder(h),
+ ControlFlow::Break(h) => return Try::from_holder(h),
335
336
337
0 commit comments