about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-02 12:14:18 +0200
committerGitHub <noreply@github.com>2019-08-02 12:14:18 +0200
commitdbfe12daed1ede9d2ccb6bf749143368bc5eade4 (patch)
treee7ee1d0a58556039d057087b74bfc8ef2d1f61a1 /src/libstd
parent5155c7ea688b4025f4d25233e0f8353f51107269 (diff)
parent325c6a56c274678f294bfa25ee43e1eef48f46a2 (diff)
downloadrust-dbfe12daed1ede9d2ccb6bf749143368bc5eade4.tar.gz
rust-dbfe12daed1ede9d2ccb6bf749143368bc5eade4.zip
Rollup merge of #63189 - waywardmonkeys:doc-improvements, r=Centril
Doc improvements

Miscellaneous documentation fixes.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ffi/c_str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 585731fb30e..6e111f24236 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -1055,7 +1055,7 @@ impl CStr {
     ///
     /// ```no_run
     /// # #![allow(unused_must_use)]
-    /// use std::ffi::{CString};
+    /// use std::ffi::CString;
     ///
     /// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
     /// unsafe {
@@ -1071,7 +1071,7 @@ impl CStr {
     ///
     /// ```no_run
     /// # #![allow(unused_must_use)]
-    /// use std::ffi::{CString};
+    /// use std::ffi::CString;
     ///
     /// let hello = CString::new("Hello").expect("CString::new failed");
     /// let ptr = hello.as_ptr();