diff --git a/src/types/closure.md b/src/types/closure.md index 92da4f885..f9719d00b 100644 --- a/src/types/closure.md +++ b/src/types/closure.md @@ -54,9 +54,7 @@ so that the call to `f` works as if it were: ```rust,ignore -// Note: This is not valid Rust due to the duplicate mutable borrows. -// This is only provided as an illustration. -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 }); ``` r[type.closure.capture]