Skip to content

Commit 8756c16

Browse files
committed
let bindings can now be refutable too
1 parent 09350ff commit 8756c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ fn answer_to_life_the_universe_and_everything() -> i32 {
5959

6060
## Function parameters
6161

62-
As with `let` bindings, function parameters are irrefutable [patterns], so any
63-
pattern that is valid in a let binding is also valid as a parameter:
62+
Function parameters are irrefutable [patterns], so any pattern that is valid in
63+
an else-less `let` binding is also valid as a parameter:
6464

6565
```rust
6666
fn first((value, _): (i32, i32)) -> i32 { value }

0 commit comments

Comments
 (0)