summary refs log tree commit diff
path: root/src/libstd/ffi
diff options
context:
space:
mode:
authorFourchaux <jprodi04@gmail.com>2017-08-15 21:45:21 +0200
committerFourchaux <jprodi04@gmail.com>2017-08-15 21:56:30 +0200
commitc7104be1a37daa2f7ec114913247dc93524fd48e (patch)
tree1d476ec4954f7cf8bdd9f508a51762ffbc41be84 /src/libstd/ffi
parent82be83cf744611a016fb09ae1afbffc04b3ed2e1 (diff)
downloadrust-c7104be1a37daa2f7ec114913247dc93524fd48e.tar.gz
rust-c7104be1a37daa2f7ec114913247dc93524fd48e.zip
Fix typos & us spellings
Diffstat (limited to 'src/libstd/ffi')
-rw-r--r--src/libstd/ffi/c_str.rs2
-rw-r--r--src/libstd/ffi/os_str.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index db64d41011c..7392a153e3b 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -830,7 +830,7 @@ impl CStr {
     ///
     /// It is your responsibility to make sure that the underlying memory is not
     /// freed too early. For example, the following code will cause undefined
-    /// behaviour when `ptr` is used inside the `unsafe` block:
+    /// behavior when `ptr` is used inside the `unsafe` block:
     ///
     /// ```no_run
     /// use std::ffi::{CString};
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs
index d62e3e905e3..a40a9329ed9 100644
--- a/src/libstd/ffi/os_str.rs
+++ b/src/libstd/ffi/os_str.rs
@@ -123,7 +123,7 @@ impl OsString {
 
     /// Creates a new `OsString` with the given capacity.
     ///
-    /// The string will be able to hold exactly `capacity` lenth units of other
+    /// The string will be able to hold exactly `capacity` length units of other
     /// OS strings without reallocating. If `capacity` is 0, the string will not
     /// allocate.
     ///