diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-11-16 16:51:22 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-11-16 16:51:22 -0800 |
| commit | 1128a7f08f21d011b72aef798073a40cfd9f33cd (patch) | |
| tree | 6a8ed05aadaf310b917e8d43e924637f1897b99a | |
| parent | 0b7b4f075a531eb160becf2818c1e9a63fa10cd3 (diff) | |
| download | rust-1128a7f08f21d011b72aef798073a40cfd9f33cd.tar.gz rust-1128a7f08f21d011b72aef798073a40cfd9f33cd.zip | |
Fixed a few typos in libcore
| -rw-r--r-- | src/libcore/mem.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 97b3554b1e1..937f73a3262 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -88,7 +88,7 @@ pub fn align_of_val<T>(_val: &T) -> uint { /// Create a value initialized to zero. /// -/// This function is similar to allocating space for a a local variable and +/// This function is similar to allocating space for a local variable and /// zeroing it out (an unsafe operation). /// /// Care must be taken when using this function, if the type `T` has a diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index f5505ff8e76..ab9d0881385 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -196,7 +196,7 @@ pub trait Int /// ``` fn swap_bytes(self) -> Self; - /// Convert a integer from big endian to the target's endianness. + /// Convert an integer from big endian to the target's endianness. /// /// On big endian this is a no-op. On little endian the bytes are swapped. /// @@ -218,7 +218,7 @@ pub trait Int if cfg!(target_endian = "big") { x } else { x.swap_bytes() } } - /// Convert a integer from little endian to the target's endianness. + /// Convert an integer from little endian to the target's endianness. /// /// On little endian this is a no-op. On big endian the bytes are swapped. /// |
