File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub enum GeneratorState<Y, R> {
47
47
/// fn main() {
48
48
/// let mut generator = || {
49
49
/// yield 1;
50
- /// return "foo"
50
+ /// "foo"
51
51
/// };
52
52
///
53
53
/// match Pin::new(&mut generator).resume(()) {
Original file line number Diff line number Diff line change @@ -1100,8 +1100,8 @@ pub macro pin($value:expr $(,)?) {
1100
1100
// that would break `Pin`'s invariants.
1101
1101
// - `{ $value }` is braced, making it a _block expression_, thus **moving**
1102
1102
// 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._
1105
1105
//
1106
1106
// This gives us a `pin!` definition that is sound, and which works, but only
1107
1107
// in certain scenarios:
You can’t perform that action at this time.
0 commit comments