Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ce95122

Browse files
committed
Update doctest
1 parent 8b65df0 commit ce95122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ impl CStr {
12651265
/// behavior when `ptr` is used inside the `unsafe` block:
12661266
///
12671267
/// ```no_run
1268-
/// # #![allow(unused_must_use)]
1268+
/// # #![allow(unused_must_use)] #![allow(temporary_cstring_as_ptr)]
12691269
/// use std::ffi::CString;
12701270
///
12711271
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();

0 commit comments

Comments
 (0)