Remove extraneous {} in use stmts in doc comments.
This commit is contained in:
parent
86633b6389
commit
ae65848d9e
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue