We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e2e24b + dea47f4 commit b73de2aCopy full SHA for b73de2a
src/types/closure.md
@@ -54,9 +54,7 @@ so that the call to `f` works as if it were:
54
55
<!-- ignore: continuation of above -->
56
```rust,ignore
57
-// Note: This is not valid Rust due to the duplicate mutable borrows.
58
-// This is only provided as an illustration.
59
-f(Closure{ left_top: &mut rect.left_top, right_bottom_x: &mut rect.left_top.x });
+f(Closure{ left_top: &mut rect.left_top, right_bottom_x: &mut rect.right_bottom.x });
60
```
61
62
r[type.closure.capture]
0 commit comments