We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a712fbd commit b3437f3Copy full SHA for b3437f3
library/std/src/primitive_docs.rs
@@ -642,8 +642,8 @@ mod prim_slice {}
642
/// assert_eq!(s, Ok(story));
643
/// ```
644
///
645
-/// [`as_ptr`]: #method.as_ptr
646
-/// [`len`]: #method.len
+/// [`as_ptr`]: str::as_ptr
+/// [`len`]: str::len
647
648
/// Note: This example shows the internals of `&str`. `unsafe` should not be
649
/// used to get a string slice under normal circumstances. Use `as_str`
0 commit comments