about summary refs log tree commit diff
path: root/library/std/src/ffi
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-19 08:23:59 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-02-25 20:31:53 -0500
commit9a75f4fed10a65e6cb779fc059f272deadd7ecc1 (patch)
tree39313a495c8f8513f87f7891b1d9bbceb723cc53 /library/std/src/ffi
parentc0a54cc4eb6111cac9ad75cc439f75b79698b4a7 (diff)
downloadrust-9a75f4fed10a65e6cb779fc059f272deadd7ecc1.tar.gz
rust-9a75f4fed10a65e6cb779fc059f272deadd7ecc1.zip
Convert primitives to use intra-doc links
Diffstat (limited to 'library/std/src/ffi')
-rw-r--r--library/std/src/ffi/c_str.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs
index 230ef0b23db..945bfda1b78 100644
--- a/library/std/src/ffi/c_str.rs
+++ b/library/std/src/ffi/c_str.rs
@@ -62,20 +62,18 @@ use crate::sys;
 /// u8` argument which is not necessarily nul-terminated, plus another
 /// argument with the length of the string — like C's `strndup()`.
 /// You can of course get the slice's length with its
-/// [`len`][slice.len] method.
+/// [`len`][slice::len] method.
 ///
 /// If you need a `&[`[`u8`]`]` slice *with* the nul terminator, you
 /// can use [`CString::as_bytes_with_nul`] instead.
 ///
 /// Once you have the kind of slice you need (with or without a nul
 /// terminator), you can call the slice's own
-/// [`as_ptr`][slice.as_ptr] method to get a read-only raw pointer to pass to
+/// [`as_ptr`][slice::as_ptr] method to get a read-only raw pointer to pass to
 /// extern functions. See the documentation for that function for a
 /// discussion on ensuring the lifetime of the raw pointer.
 ///
 /// [`&str`]: prim@str
-/// [slice.as_ptr]: ../primitive.slice.html#method.as_ptr
-/// [slice.len]: ../primitive.slice.html#method.len
 /// [`Deref`]: ops::Deref
 /// [`&CStr`]: CStr
 ///