]> git.lizzy.rs Git - rust.git/commitdiff
Fixed a few typos in libcore
authorAlex Gaynor <alex.gaynor@gmail.com>
Mon, 17 Nov 2014 00:51:22 +0000 (16:51 -0800)
committerAlex Gaynor <alex.gaynor@gmail.com>
Mon, 17 Nov 2014 00:51:22 +0000 (16:51 -0800)
src/libcore/mem.rs
src/libcore/num/mod.rs

index 97b3554b1e1ba3455e3ea2cccb9bc89370d04b67..937f73a326271491145514785d04afbeda07e00f 100644 (file)
@@ -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 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
index f5505ff8e762519a448ded962091fcf0ebca08d6..ab9d08813854cd1cb95ff10d574fc7c393b931bc 100644 (file)
@@ -196,7 +196,7 @@ fn count_zeros(self) -> uint {
     /// ```
     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 @@ fn from_be(x: Self) -> Self {
         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.
     ///