about summary refs log tree commit diff
path: root/src/libstd/ffi/c_str.rs
diff options
context:
space:
mode:
authorarcnmx <arcnmx@users.noreply.github.com>2015-11-11 14:25:18 -0500
committerarcnmx <arcnmx@users.noreply.github.com>2015-11-11 14:25:18 -0500
commitf9f734748cf3ac6bc5155afe288c0689cb57b918 (patch)
treeab2fa7cffeb3642fa74b0b08e5fb407e7f7abf27 /src/libstd/ffi/c_str.rs
parentfc60b2c73e8c8b00152a1305cd27239b50fdd267 (diff)
Cleaner c_char cfg logic
Diffstat (limited to 'src/libstd/ffi/c_str.rs')
-rw-r--r--src/libstd/ffi/c_str.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 2802ecfbb8d..42fd2321f01 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -37,11 +37,10 @@ use vec::Vec;
 ///
 /// 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 `[os::raw::c_char]`. Note that the underlying
-/// array is represented as an array of `os::raw::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.
+/// 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.
 ///
 /// # Examples
 ///