Apply suggestions from code review · patricklam/verify-rust-std@d1e21bd (original) (raw)
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -286,7 +286,7 @@ impl<T: ?Sized> *const T { | ||
286 | 286 | /// # Safety |
287 | 287 | /// |
288 | 288 | /// 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). | |
290 | 290 | /// |
291 | 291 | /// # Examples |
292 | 292 | /// |
@@ -317,7 +317,7 @@ impl<T: ?Sized> *const T { | ||
317 | 317 | /// # Safety |
318 | 318 | /// |
319 | 319 | /// 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). | |
321 | 321 | /// |
322 | 322 | /// # Examples |
323 | 323 | /// |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -72,7 +72,7 @@ | ||
72 | 72 | //! * The pointer must point to a valid value of type `T`. |
73 | 73 | //! This means that the created reference can only refer to |
74 | 74 | //! 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 | |
76 | 76 | //! padding bytes, since |
77 | 77 | //! [padding has the same validity invariant as `MaybeUninit`][ucg-pad]. |
78 | 78 | //! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -247,7 +247,7 @@ impl<T: ?Sized> *mut T { | ||
247 | 247 | /// # Safety |
248 | 248 | /// |
249 | 249 | /// 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). | |
251 | 251 | /// |
252 | 252 | /// # Examples |
253 | 253 | /// |
@@ -296,7 +296,7 @@ impl<T: ?Sized> *mut T { | ||
296 | 296 | /// |
297 | 297 | /// # Safety |
298 | 298 | /// |
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). | |
300 | 300 | /// |
301 | 301 | /// # Examples |
302 | 302 | /// |
@@ -616,7 +616,7 @@ impl<T: ?Sized> *mut T { | ||
616 | 616 | /// # Safety |
617 | 617 | /// |
618 | 618 | /// 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). | |
620 | 620 | /// |
621 | 621 | /// # Examples |
622 | 622 | /// |
@@ -651,7 +651,7 @@ impl<T: ?Sized> *mut T { | ||
651 | 651 | /// # Safety |
652 | 652 | /// |
653 | 653 | /// 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). | |
655 | 655 | #[inline] |
656 | 656 | #[unstable(feature = "ptr_as_uninit", issue = "75402")] |
657 | 657 | #[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -342,7 +342,7 @@ impl<T: ?Sized> NonNull { | ||
342 | 342 | /// # Safety |
343 | 343 | /// |
344 | 344 | /// 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). | |
346 | 346 | /// |
347 | 347 | /// # Examples |
348 | 348 | /// |
@@ -379,7 +379,7 @@ impl<T: ?Sized> NonNull { | ||
379 | 379 | /// # Safety |
380 | 380 | /// |
381 | 381 | /// 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). | |
383 | 383 | /// # Examples |
384 | 384 | /// |
385 | 385 | /// ``` |