From defcfb21f1a235153ecc03444f0e7b779de0858f Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 9 May 2017 10:55:47 -0700 Subject: Remove wrong or outdated info from CString docs. --- src/libstd/ffi/c_str.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/libstd') 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 /// -- cgit 1.4.1-3-g733a5 From e42875ce6dfc0102b00e6725f403c2f5a1b59fce Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 11 May 2017 06:27:01 +0200 Subject: doc: break into 2 sentences --- src/libstd/thread/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 4432f898e04..4ddd92f1592 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -245,8 +245,8 @@ impl Builder { /// configuration methods can be chained. /// /// If the [`stack_size`] field is not specified, the stack size - /// will be the `RUST_MIN_STACK` environment variable, if it is - /// not specified either, a sensible default size will be set (2MB as + /// will be the `RUST_MIN_STACK` environment variable. If it is + /// not specified either, a sensible default will be set (2MB as /// of the writting of this doc). /// /// # Examples -- cgit 1.4.1-3-g733a5