Skip to content

Commit d9f9287

Browse files
committed
Apply suggestions from code review
1 parent 9f84c57 commit d9f9287

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/core/src/pin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ pub unsafe trait PinSafePointer: Deref + Sized {}
19131913
//
19141914
// Conversely, downstream crates are able to implement `Debug` and `Display` for
19151915
// `&LocalType` as long as `LocalType` does not implement said trait. However,
1916-
// the existence of an `&T` is not treated as evidence that the `T` is not
1916+
// the existence of an `&&T` cannot be treated as evidence that the `T` is not
19171917
// pinned, so this is not problematic.
19181918
#[stable(feature = "pin", since = "1.33.0")]
19191919
unsafe impl<'a, T: ?Sized> PinSafePointer for &'a T {}
@@ -1931,9 +1931,9 @@ unsafe impl<'a, T: ?Sized> PinSafePointer for &'a T {}
19311931
// downstream crates cannot implement `Clone` for `&mut LocalType`.
19321932
//
19331933
// Conversely, downstream crates are able to implement `Debug` and `Display`
1934-
// for `&LocalType` as long as `LocalType` does not implement said trait.
1935-
// However, the existence of an `&T` is not treated as evidence that the `T` is
1936-
// not pinned, so this is not problematic.
1934+
// for `&mut LocalType` as long as `LocalType` does not implement said trait.
1935+
// However, the existence of an `&&mut T` cannot be treated as evidence that the
1936+
// `T` is not pinned, so this is not problematic.
19371937
#[stable(feature = "pin", since = "1.33.0")]
19381938
unsafe impl<'a, T: ?Sized> PinSafePointer for &'a mut T {}
19391939

0 commit comments

Comments
 (0)