Skip to content

Commit f616cb0

Browse files
authored
Rollup merge of #94128 - mqy:master, r=Dylan-DPC
rustdoc: several minor fixes ``@rustbot`` label A-docs
2 parents f10999a + 2add5f6 commit f616cb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/ops/generator.rs

Lines changed: 1 addition & 1 deletion
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(()) {

core/src/pin.rs

Lines changed: 2 additions & 2 deletions
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:

0 commit comments

Comments
 (0)