From b3437f36e0d2c8c172344e35fbe2a01ca10de4e2 Mon Sep 17 00:00:00 2001 From: Surya Midatala Date: Sun, 23 Aug 2020 16:27:24 +0530 Subject: [PATCH] Add missed links in primitive_docs.rs --- library/std/src/primitive_docs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 392c89a6ecf6..297c83184749 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -642,8 +642,8 @@ mod prim_slice {} /// assert_eq!(s, Ok(story)); /// ``` /// -/// [`as_ptr`]: #method.as_ptr -/// [`len`]: #method.len +/// [`as_ptr`]: str::as_ptr +/// [`len`]: str::len /// /// Note: This example shows the internals of `&str`. `unsafe` should not be /// used to get a string slice under normal circumstances. Use `as_str`