Skip to content

Commit

Permalink
Fix bootstrap doctest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Oct 27, 2020
1 parent cb8b901 commit 39941e6
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 @@ -1266,7 +1266,7 @@ impl CStr {
/// behavior when `ptr` is used inside the `unsafe` block:
///
/// ```no_run
/// # #![allow(unused_must_use, temporary_cstring_as_ptr)]
/// # #![allow(unused_must_use)] #![cfg_attr(not(bootstrap), 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 39941e6

Please sign in to comment.