Skip to content

Commit c20bdf2

Browse files
committed
fix some typos found scrolling through the docs
1 parent 398fd92 commit c20bdf2

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/doc/rustc/src/platform-support/wasm32-wasi-preview1-threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The target intends to match the corresponding Clang target for its `"C"` ABI.
9090
9191
## Platform requirements
9292

93-
The runtime should support the same set of APIs as any other supported wasi target for interacting with the host environment through the WASI standard. The runtime also should have implemetation of [wasi-threads proposal](https://github.com/WebAssembly/wasi-threads).
93+
The runtime should support the same set of APIs as any other supported wasi target for interacting with the host environment through the WASI standard. The runtime also should have implementation of [wasi-threads proposal](https://github.com/WebAssembly/wasi-threads).
9494

9595
This target is not a stable target. This means that there are a few engines
9696
which implement the `wasi-threads` feature and if they do they're likely behind a

src/doc/rustdoc/src/lints.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ warning: 1 warning emitted
415415

416416
## `redundant_explicit_links`
417417

418-
This lint is **warned by default**. It detects explicit links that are same
418+
This lint is **warn-by-default**. It detects explicit links that are same
419419
as computed automatic links.
420-
This usually means the explicit links is removeable. For example:
420+
This usually means the explicit links are removeable. For example:
421421

422422
```rust
423423
#![warn(rustdoc::redundant_explicit_links)] // note: unnecessary - warns by default.

src/doc/unstable-book/src/compiler-flags/check-cfg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn poke_platypus() {}
107107
fn tame_lion() {}
108108

109109
// This is UNEXPECTED, because 'windows' is a well known condition name,
110-
// and because 'windows' doens't take any values,
110+
// and because 'windows' doesn't take any values,
111111
// and will cause a compiler warning (by default).
112112
#[cfg(windows = "unix")]
113113
fn tame_windows() {}

src/librustdoc/lint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ declare_rustdoc_lint! {
186186
}
187187

188188
declare_rustdoc_lint! {
189-
/// This lint is **warned by default**. It detects explicit links that are same
190-
/// as computed automatic links. This usually means the explicit links is removeable.
189+
/// This lint is **warn-by-default**. It detects explicit links that are the same
190+
/// as computed automatic links. This usually means the explicit links are removeable.
191191
/// This is a `rustdoc` only lint, see the documentation in the [rustdoc book].
192192
///
193193
/// [rustdoc book]: ../../../rustdoc/lints.html#redundant_explicit_links

src/tools/tidy/src/style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ pub fn check(path: &Path, bad: &mut bool) {
494494
let mut err = |_| {
495495
tidy_error!(bad, "{}: leading newline", file.display());
496496
};
497-
suppressible_tidy_err!(err, skip_leading_newlines, "mising leading newline");
497+
suppressible_tidy_err!(err, skip_leading_newlines, "missing leading newline");
498498
}
499499
let mut err = |msg: &str| {
500500
tidy_error!(bad, "{}: {}", file.display(), msg);

0 commit comments

Comments
 (0)