Skip to content

Commit 1128a7f

Browse files
committed
Fixed a few typos in libcore
1 parent 0b7b4f0 commit 1128a7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libcore/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn align_of_val<T>(_val: &T) -> uint {
8888

8989
/// Create a value initialized to zero.
9090
///
91-
/// This function is similar to allocating space for a a local variable and
91+
/// This function is similar to allocating space for a local variable and
9292
/// zeroing it out (an unsafe operation).
9393
///
9494
/// Care must be taken when using this function, if the type `T` has a

src/libcore/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub trait Int
196196
/// ```
197197
fn swap_bytes(self) -> Self;
198198

199-
/// Convert a integer from big endian to the target's endianness.
199+
/// Convert an integer from big endian to the target's endianness.
200200
///
201201
/// On big endian this is a no-op. On little endian the bytes are swapped.
202202
///
@@ -218,7 +218,7 @@ pub trait Int
218218
if cfg!(target_endian = "big") { x } else { x.swap_bytes() }
219219
}
220220

221-
/// Convert a integer from little endian to the target's endianness.
221+
/// Convert an integer from little endian to the target's endianness.
222222
///
223223
/// On little endian this is a no-op. On big endian the bytes are swapped.
224224
///

0 commit comments

Comments
 (0)