From: Ralf Jung Date: Thu, 2 May 2019 11:10:40 +0000 (+0200) Subject: less wide comments X-Git-Url: https://git.ralfj.de/web.git/commitdiff_plain/9a322a25fcaf28f7d223dac5adac4b05d51078c2?hp=ca35978dfabe2aa7500ee810fc5deb80078afc68 less wide comments --- diff --git a/ralf/_posts/2019-04-30-stacked-borrows-2.md b/ralf/_posts/2019-04-30-stacked-borrows-2.md index dec44ed..5f13b3d 100644 --- a/ralf/_posts/2019-04-30-stacked-borrows-2.md +++ b/ralf/_posts/2019-04-30-stacked-borrows-2.md @@ -35,7 +35,7 @@ fn foo(a: &mut u32, y: *mut u32) -> u32 { *a = 1; let _b = &*a; // This freezes `*a`. Frozen locations can be read by any raw pointer. let _val = unsafe { *y; }; // Hence, this legal in Stacked Borrows. - *a = 2; // But we might want to drop the earlier `*a = 1` because it gets overwritten by this! + *a = 2; // But we might want to drop the earlier `*a = 1` because it gets overwritten! _val } {% endhighlight %}