diff --git a/src/types/closure.md b/src/types/closure.md index 85f5908e2e..e23f7fa027 100644 --- a/src/types/closure.md +++ b/src/types/closure.md @@ -480,7 +480,7 @@ union U { let u = U { a: (123, 456) }; let c = || { - let x = unsafe { u.a.0 }; // captures `u` ByValue + let x = unsafe { u.a.0 }; // captures `u` with ImmBorrow }; c();