Skip to content

Commit

Permalink
Fix typo in executor section
Browse files Browse the repository at this point in the history
  • Loading branch information
jrheard authored and huangjj27 committed Jan 1, 2021
1 parent 37e1fc5 commit c7f0d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/02_04_executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct Task {
/// The `Mutex` is not necessary for correctness, since we only have
/// one thread executing tasks at once. However, Rust isn't smart
/// enough to know that `future` is only mutated from one thread,
/// so we need use the `Mutex` to prove thread-safety. A production
/// so we need to use the `Mutex` to prove thread-safety. A production
/// executor would not need this, and could use `UnsafeCell` instead.
future: Mutex<Option<BoxFuture<'static, ()>>>,

Expand Down

0 comments on commit c7f0d4f

Please sign in to comment.