Skip to content

Commit 1865ce0

Browse files
jrheardtaiki-e
authored andcommitted
Fix typo in executor section
1 parent 1d73555 commit 1865ce0

File tree

1 file changed

+1
-1
lines changed
  • examples/02_04_executor/src

1 file changed

+1
-1
lines changed

examples/02_04_executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct Task {
3737
/// The `Mutex` is not necessary for correctness, since we only have
3838
/// one thread executing tasks at once. However, Rust isn't smart
3939
/// enough to know that `future` is only mutated from one thread,
40-
/// so we need use the `Mutex` to prove thread-safety. A production
40+
/// so we need to use the `Mutex` to prove thread-safety. A production
4141
/// executor would not need this, and could use `UnsafeCell` instead.
4242
future: Mutex<Option<BoxFuture<'static, ()>>>,
4343

0 commit comments

Comments
 (0)