mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-26 09:12:58 +02:00
Merge pull request #74 from google/try-operator
More precise phrasing of what ? expands to
This commit is contained in:
commit
dcf29d4653
@ -1,12 +1,12 @@
|
|||||||
# Converting Error Types
|
# Converting Error Types
|
||||||
|
|
||||||
The actual expansion of `?` is a little more complicated than previously indicated:
|
The effective expansion of `?` is a little more complicated than previously indicated:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
expression?
|
expression?
|
||||||
```
|
```
|
||||||
|
|
||||||
actually becomes
|
works the same as
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
match expression {
|
match expression {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user