diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-13 09:44:11 -0400 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-13 09:44:11 -0400 |
| commit | 1162b3752c71515a01875e0c9cef67ec9d7aca46 (patch) | |
| tree | 6989970e8058e01b0bd7f73dc490223dfa6a62a0 /src/liballoc | |
| parent | ec4362da562a4b591a7d120c6677e14ea713481a (diff) | |
| download | rust-1162b3752c71515a01875e0c9cef67ec9d7aca46.tar.gz rust-1162b3752c71515a01875e0c9cef67ec9d7aca46.zip | |
Correct spelling in docs
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/raw_vec.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index 4df3bacdcb6..996a590043a 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -114,7 +114,7 @@ impl<T> RawVec<T> { /// Reconstitutes a RawVec from a pointer and capacity. /// - /// # Undefined Behaviour + /// # Undefined Behavior /// /// The ptr must be allocated, and with the given capacity. The /// capacity cannot exceed `isize::MAX` (only a concern on 32-bit systems). @@ -248,7 +248,7 @@ impl<T> RawVec<T> { /// /// If `used_cap` exceeds `self.cap()`, this may fail to actually allocate /// the requested space. This is not really unsafe, but the unsafe - /// code *you* write that relies on the behaviour of this function may break. + /// code *you* write that relies on the behavior of this function may break. /// /// # Panics /// @@ -302,12 +302,12 @@ impl<T> RawVec<T> { /// Ensures that the buffer contains at least enough space to hold /// `used_cap + needed_extra_cap` elements. If it doesn't already have /// enough capacity, will reallocate enough space plus comfortable slack - /// space to get amortized `O(1)` behaviour. Will limit this behaviour + /// space to get amortized `O(1)` behavior. Will limit this behavior /// if it would needlessly cause itself to panic. /// /// If `used_cap` exceeds `self.cap()`, this may fail to actually allocate /// the requested space. This is not really unsafe, but the unsafe - /// code *you* write that relies on the behaviour of this function may break. + /// code *you* write that relies on the behavior of this function may break. /// /// This is ideal for implementing a bulk-push operation like `extend`. /// @@ -430,7 +430,7 @@ impl<T> RawVec<T> { /// Converts the entire buffer into `Box<[T]>`. /// - /// While it is not *strictly* Undefined Behaviour to call + /// While it is not *strictly* Undefined Behavior to call /// this procedure while some of the RawVec is unintialized, /// it cetainly makes it trivial to trigger it. /// |
