File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,10 @@ use str::{self, Utf8Error};
30
30
/// type is a static guarantee that the underlying bytes contain no interior 0
31
31
/// bytes and the final byte is 0.
32
32
///
33
- /// A `CString` is created from either a byte slice or a byte vector. After
34
- /// being created, a `CString` predominately inherits all of its methods from
35
- /// the `Deref` implementation to `[c_char]`. Note that the underlying array
36
- /// is represented as an array of `c_char` as opposed to `u8`. A `u8` slice
37
- /// can be obtained with the `as_bytes` method. Slices produced from a `CString`
38
- /// do *not* contain the trailing nul terminator unless otherwise specified.
33
+ /// A `CString` is created from either a byte slice or a byte vector. A `u8`
34
+ /// slice can be obtained with the `as_bytes` method. Slices produced from a
35
+ /// `CString` do *not* contain the trailing nul terminator unless otherwise
36
+ /// specified.
39
37
///
40
38
/// # Examples
41
39
///
You can’t perform that action at this time.
0 commit comments