Fixed some typos in the standard library documentation/comments · patricklam/verify-rust-std@628be3d (original) (raw)
6 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -142,7 +142,7 @@ fn main() { | ||
| 142 | 142 | |
| 143 | 143 | // Configure platforms that have reliable basics but may have unreliable math. |
| 144 | 144 | |
| 145 | -// LLVM is currenlty adding missing routines, https://github.com/llvm/llvm-project/issues/93566 | |
| 145 | +// LLVM is currently adding missing routines, https://github.com/llvm/llvm-project/issues/93566 | |
| 146 | 146 | let has_reliable_f16_math = has_reliable_f16 |
| 147 | 147 | && match (target_arch.as_str(), target_os.as_str()) { |
| 148 | 148 | // FIXME: Disabled on Miri as the intrinsics are not implemented yet. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -738,7 +738,7 @@ fn read_buf_full_read() { | ||
| 738 | 738 | #[test] |
| 739 | 739 | // Miri does not support signalling OOM |
| 740 | 740 | #[cfg_attr(miri, ignore)] |
| 741 | -// 64-bit only to be sure the allocator will fail fast on an impossible to satsify size | |
| 741 | +// 64-bit only to be sure the allocator will fail fast on an impossible to satisfy size | |
| 742 | 742 | #[cfg(target_pointer_width = "64")] |
| 743 | 743 | fn try_oom_error() { |
| 744 | 744 | let mut v = Vec::<u8>::new(); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -146,7 +146,7 @@ fn lang_start_internal( | ||
| 146 | 146 | rtabort!("drop of the panic payload panicked"); |
| 147 | 147 | }); |
| 148 | 148 | panic::catch_unwind(cleanup).map_err(rt_abort)?; |
| 149 | -// Guard against multple threads calling `libc::exit` concurrently. | |
| 149 | +// Guard against multiple threads calling `libc::exit` concurrently. | |
| 150 | 150 | // See the documentation for `unique_thread_exit` for more information. |
| 151 | 151 | panic::catch_unwind(| |
| 152 | 152 | ret_code |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -551,7 +551,7 @@ impl Channel { | ||
| 551 | 551 | |
| 552 | 552 | let mut head = self.head.index.load(Ordering::Acquire); |
| 553 | 553 | // The channel may be uninitialized, so we have to swap to avoid overwriting any sender's attempts |
| 554 | -// to initalize the first block before noticing that the receivers disconnected. Late allocations | |
| 554 | +// to initialize the first block before noticing that the receivers disconnected. Late allocations | |
| 555 | 555 | // will be deallocated by the sender in Drop. |
| 556 | 556 | let mut block = self.head.block.swap(ptr::null_mut(), Ordering::AcqRel); |
| 557 | 557 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -470,7 +470,7 @@ mod uefi_command_internal { | ||
| 470 | 470 | let st_size = unsafe { (*self.st.as_ptr()).hdr.header_size as usize }; |
| 471 | 471 | let mut crc32: u32 = 0; |
| 472 | 472 | |
| 473 | -// Set crc to 0 before calcuation | |
| 473 | +// Set crc to 0 before calculation | |
| 474 | 474 | unsafe { |
| 475 | 475 | (*self.st.as_mut_ptr()).hdr.crc32 = 0; |
| 476 | 476 | } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -215,7 +215,7 @@ impl Socket { | ||
| 215 | 215 | _ => { |
| 216 | 216 | if cfg!(target_os = "vxworks") { |
| 217 | 217 | // VxWorks poll does not return POLLHUP or POLLERR in revents. Check if the |
| 218 | -// connnection actually succeeded and return ok only when the socket is | |
| 218 | +// connection actually succeeded and return ok only when the socket is | |
| 219 | 219 | // ready and no errors were found. |
| 220 | 220 | if let Some(e) = self.take_error()? { |
| 221 | 221 | return Err(e); |