We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86633b6 commit ae65848Copy full SHA for ae65848
src/libstd/ffi/c_str.rs
@@ -1055,7 +1055,7 @@ impl CStr {
1055
///
1056
/// ```no_run
1057
/// # #![allow(unused_must_use)]
1058
- /// use std::ffi::{CString};
+ /// use std::ffi::CString;
1059
1060
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
1061
/// unsafe {
@@ -1071,7 +1071,7 @@ impl CStr {
1071
1072
1073
1074
1075
1076
/// let hello = CString::new("Hello").expect("CString::new failed");
1077
/// let ptr = hello.as_ptr();
0 commit comments