Skip to content

Commit

Permalink
Fixed a few typos in libcore
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Nov 17, 2014
1 parent 0b7b4f0 commit 1128a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libcore/mem.rs
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/num/mod.rs
Expand Up @@ -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.
///
Expand All @@ -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.
///
Expand Down

0 comments on commit 1128a7f

Please sign in to comment.