]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/ffi/c_str.rs
Auto merge of #55278 - Centril:constification-1, r=alexcrichton
[rust.git] / src / libstd / ffi / c_str.rs
index cb91453998540be040414e19a84a0f18f72c6abc..66718b95408ca160f90bb3fd6f40506addc8a1be 100644 (file)
@@ -1178,7 +1178,7 @@ pub fn to_str(&self) -> Result<&str, str::Utf8Error> {
     ///
     /// If the contents of the `CStr` are valid UTF-8 data, this
     /// function will return a [`Cow`]`::`[`Borrowed`]`(`[`&str`]`)`
-    /// with the the corresponding [`&str`] slice. Otherwise, it will
+    /// with the corresponding [`&str`] slice. Otherwise, it will
     /// replace any invalid UTF-8 sequences with
     /// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD] and return a
     /// [`Cow`]`::`[`Owned`]`(`[`String`]`)` with the result.