Remove extraneous {} in use stmts in doc comments.

This commit is contained in:
Bruce Mitchener 2019-08-01 15:13:53 +07:00
parent 86633b6389
commit ae65848d9e

View file

@ -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();