Skip to content

Commit 9974925

Browse files
committed
rustdoc: several minor fixes
1 parent b8c56fa commit 9974925

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/rustc_ast/src/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl ParenthesizedArgs {
285285

286286
pub use crate::node_id::{NodeId, CRATE_NODE_ID, DUMMY_NODE_ID};
287287

288-
/// A modifier on a bound, e.g., `?Sized` or `~const Trait`.
288+
/// A modifier on a bound, e.g., `?Trait` or `~const Trait`.
289289
///
290290
/// Negative bounds should also be handled here.
291291
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Decodable, Debug)]

library/core/src/ops/generator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub enum GeneratorState<Y, R> {
4747
/// fn main() {
4848
/// let mut generator = || {
4949
/// yield 1;
50-
/// return "foo"
50+
/// "foo"
5151
/// };
5252
///
5353
/// match Pin::new(&mut generator).resume(()) {

library/core/src/pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,8 @@ pub macro pin($value:expr $(,)?) {
11001100
// that would break `Pin`'s invariants.
11011101
// - `{ $value }` is braced, making it a _block expression_, thus **moving**
11021102
// the given `$value`, and making it _become an **anonymous** temporary_.
1103-
// By virtue of being anonynomous, it can no longer be accessed, thus
1104-
// preventing any attemps to `mem::replace` it or `mem::forget` it, _etc._
1103+
// By virtue of being anonymous, it can no longer be accessed, thus
1104+
// preventing any attempts to `mem::replace` it or `mem::forget` it, _etc._
11051105
//
11061106
// This gives us a `pin!` definition that is sound, and which works, but only
11071107
// in certain scenarios:

src/tools/lld-wrapper/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! In Rust with `-Z gcc-ld=lld` we have gcc or clang invoke rust-lld. Since there is no way to
99
//! make gcc/clang pass `-flavor <flavor>` as the first two arguments in the linker invocation
1010
//! and since Windows does not support symbolic links for files this wrapper is used in place of a
11-
//! symblic link. It execs `../rust-lld -flavor ld` if the feature `ld` is enabled and
11+
//! symbolic link. It execs `../rust-lld -flavor ld` if the feature `ld` is enabled and
1212
//! `../rust-lld -flavor ld64` if `ld64` is enabled. On Windows it spawns a `..\rust-lld.exe`
1313
//! child process.
1414

0 commit comments

Comments
 (0)