diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-05-12 18:57:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-12 18:57:27 -0600 |
| commit | 2519e90f951873091abeac6e8b797d87b0b71fc8 (patch) | |
| tree | 46af29c2ac89b8ede66ede44ae8f370f989d24a2 /src/libstd | |
| parent | 88a5af73aebc6ad5e38d4614ba6b1afe6fffaade (diff) | |
| parent | defcfb21f1a235153ecc03444f0e7b779de0858f (diff) | |
| download | rust-2519e90f951873091abeac6e8b797d87b0b71fc8.tar.gz rust-2519e90f951873091abeac6e8b797d87b0b71fc8.zip | |
Rollup merge of #41860 - mbrubeck:docs, r=nagisa
Remove wrong or outdated info from CString docs. None
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 29f977ecd8c..44b62593fa3 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -30,12 +30,10 @@ use str::{self, Utf8Error}; /// type is a static guarantee that the underlying bytes contain no interior 0 /// bytes and the final byte is 0. /// -/// A `CString` is created from either a byte slice or a byte vector. After -/// being created, a `CString` predominately inherits all of its methods from -/// the `Deref` implementation to `[c_char]`. Note that the underlying array -/// is represented as an array of `c_char` as opposed to `u8`. A `u8` slice -/// can be obtained with the `as_bytes` method. Slices produced from a `CString` -/// do *not* contain the trailing nul terminator unless otherwise specified. +/// A `CString` is created from either a byte slice or a byte vector. A `u8` +/// slice can be obtained with the `as_bytes` method. Slices produced from a +/// `CString` do *not* contain the trailing nul terminator unless otherwise +/// specified. /// /// # Examples /// |
