Skip to content

Commit 00713ff

Browse files
committed
check ./library too
1 parent e572c52 commit 00713ff

File tree

19 files changed

+40
-32
lines changed

19 files changed

+40
-32
lines changed

library/alloc/src/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
//! parameters (corresponding to `format_spec` in [the syntax](#syntax)). These
110110
//! parameters affect the string representation of what's being formatted.
111111
//!
112-
//! The colon `:` in format syntax divides indentifier of the input data and
112+
//! The colon `:` in format syntax divides identifier of the input data and
113113
//! the formatting options, the colon itself does not change anything, only
114114
//! introduces the options.
115115
//!

library/core/src/future/async_drop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<T> Future for AsyncDropOwning<T> {
4141
let dtor = Pin::new_unchecked(
4242
this.dtor.get_or_insert_with(|| async_drop_in_place(this.value.as_mut_ptr())),
4343
);
44-
// AsyncDestuctors are idempotent so Self gets idempotency as well
44+
// AsyncDestructors are idempotent so Self gets idempotency as well
4545
dtor.poll(cx)
4646
}
4747
}
@@ -247,7 +247,7 @@ async unsafe fn either<O: IntoFuture<Output = ()>, M: IntoFuture<Output = ()>, T
247247
this: *mut T,
248248
discr: <T as DiscriminantKind>::Discriminant,
249249
) {
250-
// SAFETY: Guaranteed by the safety section of this funtion's documentation
250+
// SAFETY: Guaranteed by the safety section of this function's documentation
251251
if unsafe { discriminant_value(&*this) } == discr {
252252
drop(other);
253253
matched.await

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3836,7 +3836,7 @@ where
38363836
/// used inside the `if const`.
38373837
/// Note that the two arms of this `if` really each become their own function, which is why the
38383838
/// macro supports setting attributes for those functions. The runtime function is always
3839-
/// markes as `#[inline]`.
3839+
/// marked as `#[inline]`.
38403840
///
38413841
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
38423842
pub(crate) macro const_eval_select {

library/core/src/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub unsafe fn simd_shr<T>(_lhs: T, _rhs: T) -> T {
120120
unreachable!()
121121
}
122122

123-
/// "Ands" vectors elementwise.
123+
/// "And"s vectors elementwise.
124124
///
125125
/// `T` must be a vector of integer primitive types.
126126
#[rustc_intrinsic]
@@ -574,7 +574,7 @@ pub unsafe fn simd_reduce_min<T, U>(_x: T) -> U {
574574
unreachable!()
575575
}
576576

577-
/// Logical "ands" all elements together.
577+
/// Logical "and"s all elements together.
578578
///
579579
/// `T` must be a vector of integer or floating-point primitive types.
580580
///

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
#![allow(internal_features)]
103103
#![deny(ffi_unwind_calls)]
104104
#![warn(unreachable_pub)]
105-
// Do not check link redundancy on bootstraping phase
105+
// Do not check link redundancy on bootstrapping phase
106106
#![allow(rustdoc::redundant_explicit_links)]
107107
#![warn(rustdoc::unescaped_backticks)]
108108
//

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
//!
793793
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its
794794
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
795-
//! However, as a libray author, it is your responsibility not to write something like
795+
//! However, as a library author, it is your responsibility not to write something like
796796
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
797797
//! structural pinning to an inner field of `T`, which may not be [`Unpin`]! (Adding *any*
798798
//! projection operation requires unsafe code, so the fact that [`Unpin`] is a safe trait does

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ mod prim_ref {}
16281628
/// let ptr: fn(usize) -> usize = add_one;
16291629
/// assert_eq!(ptr(5), 6);
16301630
///
1631-
/// let clos: fn(usize) -> usize = |x| x + 5;
1632-
/// assert_eq!(clos(5), 10);
1631+
/// let closure: fn(usize) -> usize = |x| x + 5;
1632+
/// assert_eq!(closure(5), 10);
16331633
/// ```
16341634
///
16351635
/// In addition to varying based on their signature, function pointers come in two flavors: safe

library/core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl<T: ?Sized> *const T {
4646
if const #[rustc_allow_const_fn_unstable(const_raw_ptr_comparison)] {
4747
match (ptr).guaranteed_eq(null_mut()) {
4848
Some(res) => res,
49-
// To remain maximally convervative, we stop execution when we don't
49+
// To remain maximally conservative, we stop execution when we don't
5050
// know whether the pointer is null or not.
5151
// We can *not* return `false` here, that would be unsound in `NonNull::new`!
5252
None => panic!("null-ness of this pointer cannot be determined in const context"),

library/panic_unwind/src/seh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
264264
// runtime under a try/catch block and the panic that we generate here will be
265265
// used as the result of the exception copy. This is used by the C++ runtime to
266266
// support capturing exceptions with std::exception_ptr, which we can't support
267-
// because Box<dyn Any> isn't clonable.
267+
// because Box<dyn Any> isn't cloneable.
268268
macro_rules! define_cleanup {
269269
($abi:tt $abi2:tt) => {
270270
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {

library/std/src/sys/net/connection/socket/wasip2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl Socket {
141141
0 => {}
142142
_ => {
143143
// WASI poll does not return POLLHUP or POLLERR in revents. Check if the
144-
// connnection actually succeeded and return ok only when the socket is
144+
// connection actually succeeded and return ok only when the socket is
145145
// ready and no errors were found.
146146
if let Some(e) = self.take_error()? {
147147
return Err(e);

0 commit comments

Comments
 (0)