Skip to content

Commit 9a5a47e

Browse files
committed
Fix some typos.
1 parent a691f1e commit 9a5a47e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub fn get_mut<T>(this: &mut Arc<T>) -> Option<&mut T> {
274274
// reference to the inner data.
275275
let inner = unsafe { &mut **this._ptr };
276276
Some(&mut inner.data)
277-
}else {
277+
} else {
278278
None
279279
}
280280
}

src/libstd/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl CString {
172172
///
173173
/// This method is equivalent to `new` except that no runtime assertion
174174
/// is made that `v` contains no 0 bytes, and it requires an actual
175-
/// byte vector, not anyhting that can be converted to one with Into.
175+
/// byte vector, not anything that can be converted to one with Into.
176176
#[stable(feature = "rust1", since = "1.0.0")]
177177
pub unsafe fn from_vec_unchecked(mut v: Vec<u8>) -> CString {
178178
v.push(0);

src/libstd/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@ impl PathExt for Path {
10991099
/// Changes the timestamps for a file's last modification and access time.
11001100
///
11011101
/// The file at the path specified will have its last access time set to
1102-
/// `atime` and its modification time set to `mtime`. The times specified should
1103-
/// be in milliseconds.
1102+
/// `accessed` and its modification time set to `modified`. The times specified
1103+
/// should be in milliseconds.
11041104
#[unstable(feature = "fs_time",
11051105
reason = "the argument type of u64 is not quite appropriate for \
11061106
this function and may change if the standard library \

src/libstd/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub trait Read {
148148
///
149149
/// If the return value of this method is `Ok(n)`, then it must be
150150
/// guaranteed that `0 <= n <= buf.len()`. A nonzero `n` value indicates
151-
/// that the buffer `buf` has ben filled in with `n` bytes of data from this
151+
/// that the buffer `buf` has been filled in with `n` bytes of data from this
152152
/// source. If `n` is `0`, then it can indicate one of two scenarios:
153153
///
154154
/// 1. This reader has reached its "end of file" and will likely no longer

src/libstd/net/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl TcpListener {
213213
/// Returns an iterator over the connections being received on this
214214
/// listener.
215215
///
216-
/// The returned iterator will never returned `None` and will also not yield
216+
/// The returned iterator will never return `None` and will also not yield
217217
/// the peer's `SocketAddr` structure.
218218
#[stable(feature = "rust1", since = "1.0.0")]
219219
pub fn incoming(&self) -> Incoming {

src/test/run-pass/method-two-trait-defer-resolution-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Test that when we write `x.foo()`, we do nothave to know the
11+
// Test that when we write `x.foo()`, we do not have to know the
1212
// complete type of `x` in order to type-check the method call. In
1313
// this case, we know that `x: Vec<_1>`, but we don't know what type
1414
// `_1` is (because the call to `push` comes later). To pick between

0 commit comments

Comments
 (0)