Skip to content

Commit af40c04

Browse files
committed
ptr links
1 parent ac8d117 commit af40c04

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

library/core/src/ptr/const_ptr.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ impl<T: ?Sized> *const T {
723723
///
724724
/// See [`ptr::read`] for safety concerns and examples.
725725
///
726-
/// [`ptr::read`]: read()
726+
/// [`ptr::read`]: crate::ptr::read()
727727
#[stable(feature = "pointer_methods", since = "1.26.0")]
728728
#[inline]
729729
pub unsafe fn read(self) -> T
@@ -743,7 +743,7 @@ impl<T: ?Sized> *const T {
743743
///
744744
/// See [`ptr::read_volatile`] for safety concerns and examples.
745745
///
746-
/// [`ptr::read_volatile`]: read_volatile()
746+
/// [`ptr::read_volatile`]: crate::ptr::read_volatile()
747747
#[stable(feature = "pointer_methods", since = "1.26.0")]
748748
#[inline]
749749
pub unsafe fn read_volatile(self) -> T
@@ -761,7 +761,7 @@ impl<T: ?Sized> *const T {
761761
///
762762
/// See [`ptr::read_unaligned`] for safety concerns and examples.
763763
///
764-
/// [`ptr::read_unaligned`]: read_unaligned()
764+
/// [`ptr::read_unaligned`]: crate::ptr::read_unaligned()
765765
#[stable(feature = "pointer_methods", since = "1.26.0")]
766766
#[inline]
767767
pub unsafe fn read_unaligned(self) -> T
@@ -779,7 +779,7 @@ impl<T: ?Sized> *const T {
779779
///
780780
/// See [`ptr::copy`] for safety concerns and examples.
781781
///
782-
/// [`ptr::copy`]: copy()
782+
/// [`ptr::copy`]: crate::ptr::copy()
783783
#[stable(feature = "pointer_methods", since = "1.26.0")]
784784
#[inline]
785785
pub unsafe fn copy_to(self, dest: *mut T, count: usize)
@@ -797,7 +797,7 @@ impl<T: ?Sized> *const T {
797797
///
798798
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
799799
///
800-
/// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
800+
/// [`ptr::copy_nonoverlapping`]: crate::ptr::copy_nonoverlapping()
801801
#[stable(feature = "pointer_methods", since = "1.26.0")]
802802
#[inline]
803803
pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)

library/core/src/ptr/mut_ptr.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ impl<T: ?Sized> *mut T {
830830
///
831831
/// See [`ptr::read`] for safety concerns and examples.
832832
///
833-
/// [`ptr::read`]: read()
833+
/// [`ptr::read`]: crate::ptr::read()
834834
#[stable(feature = "pointer_methods", since = "1.26.0")]
835835
#[inline]
836836
pub unsafe fn read(self) -> T
@@ -850,7 +850,7 @@ impl<T: ?Sized> *mut T {
850850
///
851851
/// See [`ptr::read_volatile`] for safety concerns and examples.
852852
///
853-
/// [`ptr::read_volatile`]: read_volatile()
853+
/// [`ptr::read_volatile`]: crate::ptr::read_volatile()
854854
#[stable(feature = "pointer_methods", since = "1.26.0")]
855855
#[inline]
856856
pub unsafe fn read_volatile(self) -> T
@@ -868,7 +868,7 @@ impl<T: ?Sized> *mut T {
868868
///
869869
/// See [`ptr::read_unaligned`] for safety concerns and examples.
870870
///
871-
/// [`ptr::read_unaligned`]: read_unaligned()
871+
/// [`ptr::read_unaligned`]: crate::ptr::read_unaligned()
872872
#[stable(feature = "pointer_methods", since = "1.26.0")]
873873
#[inline]
874874
pub unsafe fn read_unaligned(self) -> T
@@ -886,7 +886,7 @@ impl<T: ?Sized> *mut T {
886886
///
887887
/// See [`ptr::copy`] for safety concerns and examples.
888888
///
889-
/// [`ptr::copy`]: copy()
889+
/// [`ptr::copy`]: crate::ptr::copy()
890890
#[stable(feature = "pointer_methods", since = "1.26.0")]
891891
#[inline]
892892
pub unsafe fn copy_to(self, dest: *mut T, count: usize)
@@ -904,7 +904,7 @@ impl<T: ?Sized> *mut T {
904904
///
905905
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
906906
///
907-
/// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
907+
/// [`ptr::copy_nonoverlapping`]: crate::ptr::copy_nonoverlapping()
908908
#[stable(feature = "pointer_methods", since = "1.26.0")]
909909
#[inline]
910910
pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)
@@ -922,7 +922,7 @@ impl<T: ?Sized> *mut T {
922922
///
923923
/// See [`ptr::copy`] for safety concerns and examples.
924924
///
925-
/// [`ptr::copy`]: copy()
925+
/// [`ptr::copy`]: crate::ptr::copy()
926926
#[stable(feature = "pointer_methods", since = "1.26.0")]
927927
#[inline]
928928
pub unsafe fn copy_from(self, src: *const T, count: usize)
@@ -940,7 +940,7 @@ impl<T: ?Sized> *mut T {
940940
///
941941
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
942942
///
943-
/// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
943+
/// [`ptr::copy_nonoverlapping`]: crate::ptr::copy_nonoverlapping()
944944
#[stable(feature = "pointer_methods", since = "1.26.0")]
945945
#[inline]
946946
pub unsafe fn copy_from_nonoverlapping(self, src: *const T, count: usize)
@@ -955,7 +955,7 @@ impl<T: ?Sized> *mut T {
955955
///
956956
/// See [`ptr::drop_in_place`] for safety concerns and examples.
957957
///
958-
/// [`ptr::drop_in_place`]: drop_in_place()
958+
/// [`ptr::drop_in_place`]: crate::ptr::drop_in_place()
959959
#[stable(feature = "pointer_methods", since = "1.26.0")]
960960
#[inline]
961961
pub unsafe fn drop_in_place(self) {
@@ -968,7 +968,7 @@ impl<T: ?Sized> *mut T {
968968
///
969969
/// See [`ptr::write`] for safety concerns and examples.
970970
///
971-
/// [`ptr::write`]: write()
971+
/// [`ptr::write`]: crate::ptr::write()
972972
#[stable(feature = "pointer_methods", since = "1.26.0")]
973973
#[inline]
974974
pub unsafe fn write(self, val: T)
@@ -984,7 +984,7 @@ impl<T: ?Sized> *mut T {
984984
///
985985
/// See [`ptr::write_bytes`] for safety concerns and examples.
986986
///
987-
/// [`ptr::write_bytes`]: write_bytes()
987+
/// [`ptr::write_bytes`]: crate::ptr::write_bytes()
988988
#[stable(feature = "pointer_methods", since = "1.26.0")]
989989
#[inline]
990990
pub unsafe fn write_bytes(self, val: u8, count: usize)
@@ -1004,7 +1004,7 @@ impl<T: ?Sized> *mut T {
10041004
///
10051005
/// See [`ptr::write_volatile`] for safety concerns and examples.
10061006
///
1007-
/// [`ptr::write_volatile`]: write_volatile()
1007+
/// [`ptr::write_volatile`]: crate::ptr::write_volatile()
10081008
#[stable(feature = "pointer_methods", since = "1.26.0")]
10091009
#[inline]
10101010
pub unsafe fn write_volatile(self, val: T)
@@ -1022,7 +1022,7 @@ impl<T: ?Sized> *mut T {
10221022
///
10231023
/// See [`ptr::write_unaligned`] for safety concerns and examples.
10241024
///
1025-
/// [`ptr::write_unaligned`]: write_unaligned()
1025+
/// [`ptr::write_unaligned`]: crate::ptr::write_unaligned()
10261026
#[stable(feature = "pointer_methods", since = "1.26.0")]
10271027
#[inline]
10281028
pub unsafe fn write_unaligned(self, val: T)
@@ -1038,7 +1038,7 @@ impl<T: ?Sized> *mut T {
10381038
///
10391039
/// See [`ptr::replace`] for safety concerns and examples.
10401040
///
1041-
/// [`ptr::replace`]: replace()
1041+
/// [`ptr::replace`]: crate::ptr::replace()
10421042
#[stable(feature = "pointer_methods", since = "1.26.0")]
10431043
#[inline]
10441044
pub unsafe fn replace(self, src: T) -> T
@@ -1055,7 +1055,7 @@ impl<T: ?Sized> *mut T {
10551055
///
10561056
/// See [`ptr::swap`] for safety concerns and examples.
10571057
///
1058-
/// [`ptr::swap`]: swap()
1058+
/// [`ptr::swap`]: crate::ptr::swap()
10591059
#[stable(feature = "pointer_methods", since = "1.26.0")]
10601060
#[inline]
10611061
pub unsafe fn swap(self, with: *mut T)

0 commit comments

Comments
 (0)