Skip to content

Commit e631a72

Browse files
authored
Merge pull request #1482 from schrej/patch-1
add missing 'return' in std/result/question_mark.html
2 parents 87d6244 + 9bfbba3 commit e631a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/result/question_mark.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Chaining results using match can get pretty untidy; luckily, the `?` operator
44
can be used to make things pretty again. `?` is used at the end of an expression
55
returning a `Result`, and is equivalent to a match expression, where the
6-
`Err(err)` branch expands to an early `Err(From::from(err))`, and the `Ok(ok)`
6+
`Err(err)` branch expands to an early `return Err(From::from(err))`, and the `Ok(ok)`
77
branch expands to an `ok` expression.
88

99
```rust,editable,ignore,mdbook-runnable

0 commit comments

Comments
 (0)