From 6845dc43cd7381697a363e739ca121c3509dae86 Mon Sep 17 00:00:00 2001 From: Niv Kaminer Date: Mon, 6 Aug 2018 12:02:46 +0300 Subject: [PATCH] correct explenation on the usage of NonNull --- src/libcore/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index dec3e46897cc..4214bbb4ac44 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -654,7 +654,7 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {} /// /// // this is a self referencial struct since the slice field points to the data field. /// // we cannot inform the compiler about that with a normal reference, -/// // since moving the data with it that would violate borrowing rules. +/// // since this pattern cannot be described with the usual borrowing rules. /// // instead we use a raw pointer, though one which is known to not be null, /// // since we know its pointing at the string. /// struct Unmovable {