about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2017-08-11 20:34:14 +0200
committerBastien Orivel <eijebong@bananium.fr>2017-08-12 14:01:11 +0200
commit3ab86fbab281ca059731c31fa2aee5d9afc7e6dc (patch)
tree27758d734abda3918162b48a379a9dbf556a4a84 /src/liballoc
parent59f6b8338e866b022941ff78ccc82ccef73a52fd (diff)
downloadrust-3ab86fbab281ca059731c31fa2aee5d9afc7e6dc.tar.gz
rust-3ab86fbab281ca059731c31fa2aee5d9afc7e6dc.zip
Fix some typos
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/allocator.rs6
-rw-r--r--src/liballoc/string.rs2
-rw-r--r--src/liballoc/vec.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/liballoc/allocator.rs b/src/liballoc/allocator.rs
index 3ea7d349c9c..7b6700bfd49 100644
--- a/src/liballoc/allocator.rs
+++ b/src/liballoc/allocator.rs
@@ -240,7 +240,7 @@ impl Layout {
     ///
     /// Returns `Some((k, offset))`, where `k` is layout of the concatenated
     /// record and `offset` is the relative location, in bytes, of the
-    /// start of the `next` embedded witnin the concatenated record
+    /// start of the `next` embedded within the concatenated record
     /// (assuming that the record itself starts at offset 0).
     ///
     /// On arithmetic overflow, returns `None`.
@@ -297,7 +297,7 @@ impl Layout {
     ///
     /// Returns `(k, offset)`, where `k` is layout of the concatenated
     /// record and `offset` is the relative location, in bytes, of the
-    /// start of the `next` embedded witnin the concatenated record
+    /// start of the `next` embedded within the concatenated record
     /// (assuming that the record itself starts at offset 0).
     ///
     /// (The `offset` is always the same as `self.size()`; we use this
@@ -544,7 +544,7 @@ pub unsafe trait Alloc {
     /// practice this means implementors should eschew allocating,
     /// especially from `self` (directly or indirectly).
     ///
-    /// Implementions of the allocation and reallocation methods
+    /// Implementations of the allocation and reallocation methods
     /// (e.g. `alloc`, `alloc_one`, `realloc`) are discouraged from
     /// panicking (or aborting) in the event of memory exhaustion;
     /// instead they should return an appropriate error from the
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 322b137e99f..3ed5d2df1ab 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -653,7 +653,7 @@ impl String {
     /// * `capacity` needs to be the correct value.
     ///
     /// Violating these may cause problems like corrupting the allocator's
-    /// internal datastructures.
+    /// internal data structures.
     ///
     /// The ownership of `ptr` is effectively transferred to the
     /// `String` which may then deallocate, reallocate or change the
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 160c0ba2ab0..5f68e59289d 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -374,7 +374,7 @@ impl<T> Vec<T> {
     /// * `capacity` needs to be the capacity that the pointer was allocated with.
     ///
     /// Violating these may cause problems like corrupting the allocator's
-    /// internal datastructures. For example it is **not** safe
+    /// internal data structures. For example it is **not** safe
     /// to build a `Vec<u8>` from a pointer to a C `char` array and a `size_t`.
     ///
     /// The ownership of `ptr` is effectively transferred to the