Skip to content

Commit 628be3d

Browse files
committed
Fixed some typos in the standard library documentation/comments
1 parent 374229a commit 628be3d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Diff for: std/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn main() {
142142

143143
// Configure platforms that have reliable basics but may have unreliable math.
144144

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>
146146
let has_reliable_f16_math = has_reliable_f16
147147
&& match (target_arch.as_str(), target_os.as_str()) {
148148
// FIXME: Disabled on Miri as the intrinsics are not implemented yet.

Diff for: std/src/io/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ fn read_buf_full_read() {
738738
#[test]
739739
// Miri does not support signalling OOM
740740
#[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
742742
#[cfg(target_pointer_width = "64")]
743743
fn try_oom_error() {
744744
let mut v = Vec::<u8>::new();

Diff for: std/src/rt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn lang_start_internal(
146146
rtabort!("drop of the panic payload panicked");
147147
});
148148
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.
150150
// See the documentation for `unique_thread_exit` for more information.
151151
panic::catch_unwind(|| crate::sys::exit_guard::unique_thread_exit()).map_err(rt_abort)?;
152152
ret_code

Diff for: std/src/sync/mpmc/list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ impl<T> Channel<T> {
551551

552552
let mut head = self.head.index.load(Ordering::Acquire);
553553
// 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
555555
// will be deallocated by the sender in Drop.
556556
let mut block = self.head.block.swap(ptr::null_mut(), Ordering::AcqRel);
557557

Diff for: std/src/sys/pal/uefi/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ mod uefi_command_internal {
470470
let st_size = unsafe { (*self.st.as_ptr()).hdr.header_size as usize };
471471
let mut crc32: u32 = 0;
472472

473-
// Set crc to 0 before calcuation
473+
// Set crc to 0 before calculation
474474
unsafe {
475475
(*self.st.as_mut_ptr()).hdr.crc32 = 0;
476476
}

Diff for: std/src/sys/pal/unix/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl Socket {
215215
_ => {
216216
if cfg!(target_os = "vxworks") {
217217
// 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
219219
// ready and no errors were found.
220220
if let Some(e) = self.take_error()? {
221221
return Err(e);

0 commit comments

Comments
 (0)