]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/ffi/os_str.rs
Capitalize safety comments
[rust.git] / library / std / src / ffi / os_str.rs
index e0be6d1c836aea9456a45197303778cfdce4c582..c83e996634c8a6e79ca4a9637c898f106fdad6ee 100644 (file)
@@ -510,14 +510,14 @@ pub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &OsStr {
 
     #[inline]
     fn from_inner(inner: &Slice) -> &OsStr {
-        // Safety: OsStr is just a wrapper of Slice,
+        // SAFETY: OsStr is just a wrapper of Slice,
         // therefore converting &Slice to &OsStr is safe.
         unsafe { &*(inner as *const Slice as *const OsStr) }
     }
 
     #[inline]
     fn from_inner_mut(inner: &mut Slice) -> &mut OsStr {
-        // Safety: OsStr is just a wrapper of Slice,
+        // SAFETY: OsStr is just a wrapper of Slice,
         // therefore converting &mut Slice to &mut OsStr is safe.
         // Any method that mutates OsStr must be careful not to
         // break platform-specific encoding, in particular Wtf8 on Windows.