Skip to content

Commit 6845dc4

Browse files
committed
correct explenation on the usage of NonNull
1 parent 038ce65 commit 6845dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
654654
///
655655
/// // this is a self referencial struct since the slice field points to the data field.
656656
/// // we cannot inform the compiler about that with a normal reference,
657-
/// // since moving the data with it that would violate borrowing rules.
657+
/// // since this pattern cannot be described with the usual borrowing rules.
658658
/// // instead we use a raw pointer, though one which is known to not be null,
659659
/// // since we know its pointing at the string.
660660
/// struct Unmovable {

0 commit comments

Comments
 (0)