Skip to content

Commit 67634db

Browse files
authored
Merge pull request #422 from qutesy/patch-1
fix typo in blog post about async-await diagnostics
2 parents eee74c9 + eb26567 commit 67634db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2019-10-11-AsyncAwait-Not-Send-Error-Improvements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async fn bar(x: &Mutex<u32>) {
166166
} // <- `g` is dropped here
167167
```
168168

169-
`bar` unlocks the mutex before `await`ing `baz`. `std::sync::MutexGuard<u32>` does not implement
169+
`bar` locks the mutex before `await`ing `baz`. `std::sync::MutexGuard<u32>` does not implement
170170
`Send` and lives across the `baz().await` point (because `g` is dropped at the end of the scope)
171171
which causes the entire future not to implement `Send`.
172172

0 commit comments

Comments
 (0)