diff options
| author | Brian Wignall <brianwignall@gmail.com> | 2019-11-26 22:19:54 -0500 |
|---|---|---|
| committer | Brian Wignall <brianwignall@gmail.com> | 2019-11-26 22:19:54 -0500 |
| commit | 16fabd8efd416a8b957e369b8be2470e1271af9e (patch) | |
| tree | 56aa5e9a690b55f0d28dd0556d918ddd23475bbc /src/libstd/sys | |
| parent | a7d791b4503a86c1b16b4393ba7998ef8b561a27 (diff) | |
| download | rust-16fabd8efd416a8b957e369b8be2470e1271af9e.tar.gz rust-16fabd8efd416a8b957e369b8be2470e1271af9e.zip | |
Fix spelling typos
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/wasm/fast_thread_local.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index cbf751bec95..8669c48e3bb 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -128,7 +128,7 @@ cfg_has_statx! {{ // It is a trick to call `statx` with NULL pointers to check if the syscall // is available. According to the manual, it is expected to fail with EFAULT. // We do this mainly for performance, since it is nearly hundreds times - // faster than a normal successfull call. + // faster than a normal successful call. let err = cvt(statx(0, ptr::null(), 0, libc::STATX_ALL, ptr::null_mut())) .err() .and_then(|e| e.raw_os_error()); @@ -1223,7 +1223,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> { // The code below ensures that `FreeOnDrop` is never a null pointer unsafe { // `copyfile_state_free` returns -1 if the `to` or `from` files - // cannot be closed. However, this is not considerd this an + // cannot be closed. However, this is not considered this an // error. copyfile_state_free(self.0); } diff --git a/src/libstd/sys/wasm/fast_thread_local.rs b/src/libstd/sys/wasm/fast_thread_local.rs index ff2198175f0..3b0993fdb58 100644 --- a/src/libstd/sys/wasm/fast_thread_local.rs +++ b/src/libstd/sys/wasm/fast_thread_local.rs @@ -3,7 +3,7 @@ pub unsafe fn register_dtor(_t: *mut u8, _dtor: unsafe extern fn(*mut u8)) { // FIXME: right now there is no concept of "thread exit", but this is likely // going to show up at some point in the form of an exported symbol that the - // wasm runtime is oging to be expected to call. For now we basically just + // wasm runtime is going to be expected to call. For now we basically just // ignore the arguments, but if such a function starts to exist it will // likely look like the OSX implementation in `unix/fast_thread_local.rs` } |
