about summary refs log tree commit diff
path: root/src/libstd/ffi
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2018-11-10 19:31:49 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2018-11-10 19:31:49 +0700
commit9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd (patch)
tree00295620c9e0ff493223fa15d8048ac3deeed2b5 /src/libstd/ffi
parent0366ccafa6f1740acc9c26797e08d7691d835393 (diff)
downloadrust-9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd.tar.gz
rust-9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd.zip
Fix documentation typos.
Diffstat (limited to 'src/libstd/ffi')
-rw-r--r--src/libstd/ffi/c_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index dfec13cd2ec..87ffe0f15e4 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -1178,7 +1178,7 @@ impl CStr {
     ///
     /// 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.