Skip to content

Commit 86633b6

Browse files
Fix typos in doc comments.
1 parent b5c04e6 commit 86633b6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/libcore/convert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub trait TryInto<T>: Sized {
427427
/// - [`try_from`] is reflexive, which means that `TryFrom<T> for T`
428428
/// is implemented and cannot fail -- the associated `Error` type for
429429
/// calling `T::try_from()` on a value of type `T` is [`Infallible`].
430-
/// When the [`!`] type is stablized [`Infallible`] and [`!`] will be
430+
/// When the [`!`] type is stabilized [`Infallible`] and [`!`] will be
431431
/// equivalent.
432432
///
433433
/// `TryFrom<T>` can be implemented as follows:

src/libcore/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ impl<T> MaybeUninit<T> {
434434
/// Reads the value from the `MaybeUninit<T>` container. The resulting `T` is subject
435435
/// to the usual drop handling.
436436
///
437-
/// Whenever possible, it is preferrable to use [`assume_init`] instead, which
437+
/// Whenever possible, it is preferable to use [`assume_init`] instead, which
438438
/// prevents duplicating the content of the `MaybeUninit<T>`.
439439
///
440440
/// # Safety

src/libcore/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ impl<T: ?Sized> *const T {
16111611
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
16121612
/// used with the `add` method.
16131613
///
1614-
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
1614+
/// There are no guarantees whatsoever that offsetting the pointer will not overflow or go
16151615
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that
16161616
/// the returned offset is correct in all terms other than alignment.
16171617
///
@@ -2412,7 +2412,7 @@ impl<T: ?Sized> *mut T {
24122412
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
24132413
/// used with the `add` method.
24142414
///
2415-
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
2415+
/// There are no guarantees whatsoever that offsetting the pointer will not overflow or go
24162416
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that
24172417
/// the returned offset is correct in all terms other than alignment.
24182418
///

src/librustc/traits/select.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ struct TraitObligationStack<'prev, 'tcx> {
167167
/// ok on the premise that if `A: AutoTrait` held, but we indeed
168168
/// encountered a problem (later on) with `A: AutoTrait. So we
169169
/// currently set a flag on the stack node for `B: AutoTrait` (as
170-
/// well as the second instance of `A: AutoTrait`) to supress
170+
/// well as the second instance of `A: AutoTrait`) to suppress
171171
/// caching.
172172
///
173173
/// This is a simple, targeted fix. A more-performant fix requires
@@ -1105,7 +1105,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
11051105
///
11061106
/// - is a defaulted trait,
11071107
/// - it also appears in the backtrace at some position `X`,
1108-
/// - all the predicates at positions `X..` between `X` an the top are
1108+
/// - all the predicates at positions `X..` between `X` and the top are
11091109
/// also defaulted traits.
11101110
pub fn coinductive_match<I>(&mut self, cycle: I) -> bool
11111111
where

src/libsyntax/parse/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ pub fn stream_to_parser_with_base_dir<'a>(
368368

369369
/// A sequence separator.
370370
pub struct SeqSep {
371-
/// The seperator token.
371+
/// The separator token.
372372
pub sep: Option<TokenKind>,
373373
/// `true` if a trailing separator is allowed.
374374
pub trailing_sep_allowed: bool,

0 commit comments

Comments
 (0)