Rollup merge of #129804 - ranger-ross:fixed-documentation-typos, r=No… · patricklam/verify-rust-std@7fd784e (original) (raw)
12 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3302,7 +3302,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMutKey<'a, K, V, A> { | ||
| 3302 | 3302 | Some(kv) |
| 3303 | 3303 | } |
| 3304 | 3304 | |
| 3305 | -/// Removes the precending element from the `BTreeMap`. | |
| 3305 | +/// Removes the preceding element from the `BTreeMap`. | |
| 3306 | 3306 | /// |
| 3307 | 3307 | /// The element that was removed is returned. The cursor position is |
| 3308 | 3308 | /// unchanged (after the removed element). |
| @@ -3408,7 +3408,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMut<'a, K, V, A> { | ||
| 3408 | 3408 | self.inner.remove_next() |
| 3409 | 3409 | } |
| 3410 | 3410 | |
| 3411 | -/// Removes the precending element from the `BTreeMap`. | |
| 3411 | +/// Removes the preceding element from the `BTreeMap`. | |
| 3412 | 3412 | /// |
| 3413 | 3413 | /// The element that was removed is returned. The cursor position is |
| 3414 | 3414 | /// unchanged (after the removed element). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2298,7 +2298,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMut<'a, T, A> { | ||
| 2298 | 2298 | self.inner.remove_next().map(|(k, _) |
| 2299 | 2299 | } |
| 2300 | 2300 | |
| 2301 | -/// Removes the precending element from the `BTreeSet`. | |
| 2301 | +/// Removes the preceding element from the `BTreeSet`. | |
| 2302 | 2302 | /// |
| 2303 | 2303 | /// The element that was removed is returned. The cursor position is |
| 2304 | 2304 | /// unchanged (after the removed element). |
| @@ -2384,7 +2384,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMutKey<'a, T, A> { | ||
| 2384 | 2384 | self.inner.remove_next().map(|(k, _) |
| 2385 | 2385 | } |
| 2386 | 2386 | |
| 2387 | -/// Removes the precending element from the `BTreeSet`. | |
| 2387 | +/// Removes the preceding element from the `BTreeSet`. | |
| 2388 | 2388 | /// |
| 2389 | 2389 | /// The element that was removed is returned. The cursor position is |
| 2390 | 2390 | /// unchanged (after the removed element). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -37,7 +37,7 @@ pub use iter::IntoIter; | ||
| 37 | 37 | /// |
| 38 | 38 | /// # Example |
| 39 | 39 | /// |
| 40 | -/// Creating muliple copies of a `String`: | |
| 40 | +/// Creating multiple copies of a `String`: | |
| 41 | 41 | /// ```rust |
| 42 | 42 | /// #![feature(array_repeat)] |
| 43 | 43 | /// |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -157,7 +157,7 @@ async unsafe fn surface_drop_in_place<T: Drop + ?Sized>(ptr: *mut T) { | ||
| 157 | 157 | unsafe { crate::ops::fallback_surface_drop(&mut *ptr) } |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | -/// Wraps a future to continue outputing `Poll::Ready(())` once after | |
| 160 | +/// Wraps a future to continue outputting `Poll::Ready(())` once after | |
| 161 | 161 | /// wrapped future completes by returning `Poll::Ready(())` on poll. This |
| 162 | 162 | /// is useful for constructing async destructors to guarantee this |
| 163 | 163 | /// "fuse" property |
| @@ -223,7 +223,7 @@ where | ||
| 223 | 223 | /// # Safety |
| 224 | 224 | /// |
| 225 | 225 | /// Same as `async_drop_in_place` except is lazy to avoid creating |
| 226 | -/// multiple mutable refernces. | |
| 226 | +/// multiple mutable references. | |
| 227 | 227 | #[lang = "async_drop_defer"] |
| 228 | 228 | async unsafe fn defer<T: ?Sized>(to_drop: *mut T) { |
| 229 | 229 | // SAFETY: same safety requirements as `async_drop_in_place` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -310,7 +310,7 @@ define!( | ||
| 310 | 310 | ); |
| 311 | 311 | define!( |
| 312 | 312 | "mir_unwind_cleanup", |
| 313 | -/// An unwind action that continues execution in a given basic blok. | |
| 313 | +/// An unwind action that continues execution in a given basic block. | |
| 314 | 314 | fn UnwindCleanup(goto: BasicBlock) -> UnwindActionArg |
| 315 | 315 | ); |
| 316 | 316 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1072,7 +1072,7 @@ pub(crate) mod builtin { | ||
| 1072 | 1072 | /// If the environment variable is not defined, then a compilation error |
| 1073 | 1073 | /// will be emitted. To not emit a compile error, use the [`option_env!`] |
| 1074 | 1074 | /// macro instead. A compilation error will also be emitted if the |
| 1075 | - /// environment variable is not a vaild Unicode string. | |
| 1075 | + /// environment variable is not a valid Unicode string. | |
| 1076 | 1076 | /// |
| 1077 | 1077 | /// # Examples |
| 1078 | 1078 | /// |
| 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 |