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> {
4747/// fn main() {
4848/// let mut generator = || {
4949/// yield 1;
50- /// return "foo"
50+ /// "foo"
5151/// };
5252///
5353/// 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 $(,)?) {
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:
You can’t perform that action at this time.
0 commit comments