File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ use sys;
33
33
/// type is a static guarantee that the underlying bytes contain no interior 0
34
34
/// bytes ("nul characters") and that the final byte is 0 ("nul terminator").
35
35
///
36
- /// `CString` is to [`CStr`] as [`String`] is to [`&str`]: the former
36
+ /// `CString` is to [`& CStr`] as [`String`] is to [`&str`]: the former
37
37
/// in each pair are owned strings; the latter are borrowed
38
38
/// references.
39
39
///
@@ -88,6 +88,7 @@ use sys;
88
88
/// [slice.len]: ../primitive.slice.html#method.len
89
89
/// [`Deref`]: ../ops/trait.Deref.html
90
90
/// [`CStr`]: struct.CStr.html
91
+ /// [`&CStr`]: struct.CStr.html
91
92
///
92
93
/// # Examples
93
94
///
@@ -137,7 +138,7 @@ pub struct CString {
137
138
/// converted to a Rust [`&str`] by performing UTF-8 validation, or
138
139
/// into an owned [`CString`].
139
140
///
140
- /// `CStr` is to [`CString`] as [`&str`] is to [`String`]: the former
141
+ /// `& CStr` is to [`CString`] as [`&str`] is to [`String`]: the former
141
142
/// in each pair are borrowed references; the latter are owned
142
143
/// strings.
143
144
///
You can’t perform that action at this time.
0 commit comments