1
Fork 0

Fixed a few typos in libcore

This commit is contained in:
Alex Gaynor 2014-11-16 16:51:22 -08:00
parent 0b7b4f075a
commit 1128a7f08f
2 changed files with 3 additions and 3 deletions

View 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 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

View file

@ -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.
///