File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ pub fn get_mut<T>(this: &mut Arc<T>) -> Option<&mut T> {
274
274
// reference to the inner data.
275
275
let inner = unsafe { & mut * * this. _ptr } ;
276
276
Some ( & mut inner. data )
277
- } else {
277
+ } else {
278
278
None
279
279
}
280
280
}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ impl CString {
172
172
///
173
173
/// This method is equivalent to `new` except that no runtime assertion
174
174
/// 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.
176
176
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
177
177
pub unsafe fn from_vec_unchecked ( mut v : Vec < u8 > ) -> CString {
178
178
v. push ( 0 ) ;
Original file line number Diff line number Diff line change @@ -1099,8 +1099,8 @@ impl PathExt for Path {
1099
1099
/// Changes the timestamps for a file's last modification and access time.
1100
1100
///
1101
1101
/// 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.
1104
1104
#[ unstable( feature = "fs_time" ,
1105
1105
reason = "the argument type of u64 is not quite appropriate for \
1106
1106
this function and may change if the standard library \
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ pub trait Read {
148
148
///
149
149
/// If the return value of this method is `Ok(n)`, then it must be
150
150
/// 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
152
152
/// source. If `n` is `0`, then it can indicate one of two scenarios:
153
153
///
154
154
/// 1. This reader has reached its "end of file" and will likely no longer
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ impl TcpListener {
213
213
/// Returns an iterator over the connections being received on this
214
214
/// listener.
215
215
///
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
217
217
/// the peer's `SocketAddr` structure.
218
218
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
219
219
pub fn incoming ( & self ) -> Incoming {
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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
12
12
// complete type of `x` in order to type-check the method call. In
13
13
// this case, we know that `x: Vec<_1>`, but we don't know what type
14
14
// `_1` is (because the call to `push` comes later). To pick between
You can’t perform that action at this time.
0 commit comments