File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ use crate::str;
13
13
/// array of bytes. It can be constructed safely from a <code>&[[u8]]</code>
14
14
/// slice, or unsafely from a raw `*const c_char`. It can then be
15
15
/// converted to a Rust <code>&[str]</code> by performing UTF-8 validation, or
16
- /// into an owned `CString`.
16
+ /// into an owned [ `CString`] .
17
17
///
18
- /// `&CStr` is to `CString` as <code>&[str]</code> is to `String`: the former
18
+ /// `&CStr` is to [ `CString`] as <code>&[str]</code> is to [ `String`] : the former
19
19
/// in each pair are borrowed references; the latter are owned
20
20
/// strings.
21
21
///
@@ -24,6 +24,9 @@ use crate::str;
24
24
/// functions may leverage the unsafe [`CStr::from_ptr`] constructor to provide
25
25
/// a safe interface to other consumers.
26
26
///
27
+ /// [`CString`]: ../../std/ffi/struct.CString.html
28
+ /// [`String`]: ../../std/string/struct.String.html
29
+ ///
27
30
/// # Examples
28
31
///
29
32
/// Inspecting a foreign C string:
You can’t perform that action at this time.
0 commit comments