Skip to content

Commit ae65848

Browse files
Remove extraneous {} in use stmts in doc comments.
1 parent 86633b6 commit ae65848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libstd/ffi/c_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ impl CStr {
10551055
///
10561056
/// ```no_run
10571057
/// # #![allow(unused_must_use)]
1058-
/// use std::ffi::{CString};
1058+
/// use std::ffi::CString;
10591059
///
10601060
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
10611061
/// unsafe {
@@ -1071,7 +1071,7 @@ impl CStr {
10711071
///
10721072
/// ```no_run
10731073
/// # #![allow(unused_must_use)]
1074-
/// use std::ffi::{CString};
1074+
/// use std::ffi::CString;
10751075
///
10761076
/// let hello = CString::new("Hello").expect("CString::new failed");
10771077
/// let ptr = hello.as_ptr();

0 commit comments

Comments
 (0)