summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/cstr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/cstr.rs')
-rw-r--r--vendor/rustix/src/cstr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/rustix/src/cstr.rs b/vendor/rustix/src/cstr.rs
index 5e3364380..01dbe7e2f 100644
--- a/vendor/rustix/src/cstr.rs
+++ b/vendor/rustix/src/cstr.rs
@@ -9,7 +9,7 @@
///
/// # Examples
///
-/// ```rust,no_run
+/// ```no_run
/// # #[cfg(feature = "fs")]
/// # fn main() -> rustix::io::Result<()> {
/// use rustix::cstr;
@@ -44,7 +44,7 @@ macro_rules! cstr {
// `from_bytes_with_nul_unchecked`, which as of this writing is defined
// as `#[inline]` and completely optimizes away.
//
- // Safety: We have manually checked that the string does not contain
+ // SAFETY: We have manually checked that the string does not contain
// embedded NULs above, and we append or own NUL terminator here.
unsafe {
$crate::ffi::CStr::from_bytes_with_nul_unchecked(concat!($str, "\0").as_bytes())