Skip to content

Commit d21fbe8

Browse files
committed
Add missed links in primitive_docs.rs
1 parent cb94a12 commit d21fbe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ mod prim_slice {}
642642
/// assert_eq!(s, Ok(story));
643643
/// ```
644644
///
645-
/// [`as_ptr`]: #method.as_ptr
646-
/// [`len`]: #method.len
645+
/// [`as_ptr`]: str::as_ptr
646+
/// [`len`]: str::len
647647
///
648648
/// Note: This example shows the internals of `&str`. `unsafe` should not be
649649
/// used to get a string slice under normal circumstances. Use `as_str`

0 commit comments

Comments
 (0)