Skip to content

Commit 77fa6fb

Browse files
committed
Typos
1 parent cf170a7 commit 77fa6fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Custom coroutines implementation in GNU C.
88

99
Coroutine is a lightweight user space thread with its own stack that can suspend its execution and switch to another coroutine on demand. Coroutines do not run in parallel but rather cooperatively switch between each other whenever they feel like it.
1010

11-
Coroutines are useful in cases when all your program does majority of the time is waiting on IO. So with coroutines you have an opportunity to switch the context and go do something else. It is not useful to split up heavy CPU computations because they all going to be executed on a single thread. Use proper thread for that (pthreads on POSIX).
11+
Coroutines are useful in cases when all your program does majority of the time is waiting on IO. So with coroutines you have an opportunity to switch the context and go do something else. It is not useful to split up heavy CPU computations because they all going to be executed on a single thread. Use proper threads for that (pthreads on POSIX).
1212

13-
Good uses case for coroutines are usually Network Applications and UI. Anything with a slow Async IO.
13+
Good use cases for coroutines are usually Network Applications and UI. Anything with a slow Async IO.
1414

1515
<!-- End of the copy of the section -->
1616

coroutine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// time is waiting on IO. So with coroutines you have an opportunity to do
1313
// coroutine_yield() and go do something else. It is not useful to split up
1414
// heavy CPU computations because they all going to be executed on a single
15-
// thread. Use proper thread for that (pthreads on POSIX).
15+
// thread. Use proper threads for that (pthreads on POSIX).
1616
//
17-
// Good uses case for coroutines are usually Network Applications and UI.
17+
// Good use cases for coroutines are usually Network Applications and UI.
1818
// Anything with a slow Async IO.
1919
//
2020
// # How does it work?

0 commit comments

Comments
 (0)