Skip to content

Commit d1e21bd

Browse files
authored
Apply suggestions from code review
1 parent eae7987 commit d1e21bd

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Diff for: core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl<T: ?Sized> *const T {
286286
/// # Safety
287287
///
288288
/// When calling this method, you have to ensure that
289-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
289+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
290290
///
291291
/// # Examples
292292
///
@@ -317,7 +317,7 @@ impl<T: ?Sized> *const T {
317317
/// # Safety
318318
///
319319
/// When calling this method, you have to ensure that *either* the pointer is null *or*
320-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
320+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
321321
///
322322
/// # Examples
323323
///

Diff for: core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
//! * The pointer must point to a valid value of type `T`.
7373
//! This means that the created reference can only refer to
7474
//! uninitialized memory through careful use of `MaybeUninit`,
75-
//! or if the uninitialized memory is entirly contained within
75+
//! or if the uninitialized memory is entirely contained within
7676
//! padding bytes, since
7777
//! [padding has the same validity invariant as `MaybeUninit`][ucg-pad].
7878
//!

Diff for: core/src/ptr/mut_ptr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<T: ?Sized> *mut T {
247247
/// # Safety
248248
///
249249
/// When calling this method, you have to ensure that *either* the pointer is null *or*
250-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
250+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
251251
///
252252
/// # Examples
253253
///
@@ -296,7 +296,7 @@ impl<T: ?Sized> *mut T {
296296
///
297297
/// # Safety
298298
///
299-
/// When calling this method, you have to ensure that the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
299+
/// When calling this method, you have to ensure that the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
300300
///
301301
/// # Examples
302302
///
@@ -616,7 +616,7 @@ impl<T: ?Sized> *mut T {
616616
/// # Safety
617617
///
618618
/// When calling this method, you have to ensure that
619-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
619+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
620620
///
621621
/// # Examples
622622
///
@@ -651,7 +651,7 @@ impl<T: ?Sized> *mut T {
651651
/// # Safety
652652
///
653653
/// When calling this method, you have to ensure that *either* the pointer is null *or*
654-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
654+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
655655
#[inline]
656656
#[unstable(feature = "ptr_as_uninit", issue = "75402")]
657657
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]

Diff for: core/src/ptr/non_null.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<T: ?Sized> NonNull<T> {
342342
/// # Safety
343343
///
344344
/// When calling this method, you have to ensure that
345-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
345+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
346346
///
347347
/// # Examples
348348
///
@@ -379,7 +379,7 @@ impl<T: ?Sized> NonNull<T> {
379379
/// # Safety
380380
///
381381
/// When calling this method, you have to ensure that
382-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
382+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
383383
/// # Examples
384384
///
385385
/// ```

0 commit comments

Comments
 (0)