Skip to content

Commit

Permalink
Update doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Oct 26, 2020
1 parent 8b65df0 commit ce95122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/ffi/c_str.rs
Expand Up @@ -1265,7 +1265,7 @@ impl CStr {
/// behavior when `ptr` is used inside the `unsafe` block:
///
/// ```no_run
/// # #![allow(unused_must_use)]
/// # #![allow(unused_must_use)] #![allow(temporary_cstring_as_ptr)]
/// use std::ffi::CString;
///
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();
Expand Down

0 comments on commit ce95122

Please sign in to comment.