Skip to content

Commit 5d2858c

Browse files
committed
fixed if let guards documentation
1 parent a047a5e commit 5d2858c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/match-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Before a guard (including an `if let` guard) is evaluated:
229229
230230
```
231231
In the above example, `v` is already bound in the outer pattern, and the guard attempts to move it --- this is not allowed. You can fix it by cloning or borrowing:
232-
```rust
232+
```rust,ignore
233233
Some(v) if let Some(_) = take(v.clone()) => "ok",
234234
```
235235
> [!NOTE]

0 commit comments

Comments
 (0)