Skip to content

Commit b807c70

Browse files
doc typo fixes
1 parent a3c061f commit b807c70

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed

doc/motivation.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Motivation
22

3-
Many languages programming languages
3+
Many programming languages
44
like node.js and python provide easy to use single-threaded concurrency frameworks.
55
While more complex than synchronous code,
66
single threaded asynchronicity avoids many of the pitfalls & overhead of multi-threading.
@@ -11,9 +11,9 @@ This allows to write applications that *do multiple things simultaneously* on a
1111
This library is meant to provide this to C++: *simple single threaded asynchronicity*
1212
akin to node.js and asyncio in python that works with existing libraries like
1313
`boost.beast`, `boost.mysql` or `boost.redis`.
14-
It based on `boost.asio`.
14+
It is based on `boost.asio`.
1515

16-
It takes a collection of concepts from other languages and provides them based on C++20 coroutines.
16+
It takes a collection of concepts from other languages and provides them based on C++20 coroutines.
1717

1818
- easy asynchronous base functions, such as an async <<main, main>> & <<thread, threads>>
1919
- <<promise, promise>> & <<generator, generator>> types

doc/reference/gather.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `gather` function can be used to `co_await` multiple <<awaitable, awaitables
55
at once with cancellations being passed through.
66

77
The function will gather all completion and return them as `system::result`,
8-
i.e. capture conceptions as values. One awaitable throwing an exception will not cancel the others.
8+
i.e. capture exceptions as values. One awaitable throwing an exception will not cancel the others.
99

1010
It can be called as a variadic function with multiple <<awaitable>> or as on a range of <<awaitable, awaitables>>.
1111

doc/reference/generators.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ cobalt::generator<int> my_gen(std::allocator_arg_t, pmr::polymorphic_allocator<v
174174
----
175175
include::../../include/boost/cobalt/generator.hpp[tag=outline]
176176
----
177-
<1> This allows code like `while (gen) co_await gen:`
177+
<1> This allows code like `while (gen) co_await gen;`
178178
<2> Supports <<interrupt_await>>
179179
<3> A cancelled generator maybe be resumable
180180

doc/reference/join.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ template<asio::cancellation_type Ct = asio::cancellation_type::all, range<awaita
6060
__awaitable__ join(PromiseRange && p);
6161
----
6262

63-
NOTE: Selecting an on empty range will cause an exception.
63+
NOTE: Selecting an empty range will cause an exception.
6464

doc/reference/main.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[#main]
22
== cobalt/main.hpp
33

4-
The easiest way to get started with an cobalt application is to use the `co_main` function with the following signature:
4+
The easiest way to get started with a cobalt application is to use the `co_main` function with the following signature:
55

66
[source,cpp]
77
----
@@ -23,13 +23,13 @@ cobalt::main co_main(int argc, char *argv[])
2323
----
2424
<1> get the executor `main` running on
2525
<2> Use it with an asio object
26-
<3> `co_await` an cobalt operation
26+
<3> `co_await` a cobalt operation
2727

2828
The main promise will create an `asio::signal_set` and uses it for cancellation.
2929
`SIGINT` becomes total , while `SIGTERM` becomes terminal cancellation.
3030

3131
NOTE: The cancellation will not be forwarded to detached coroutines.
32-
The user will need to take care to end then on cancellation,
32+
The user will need to take care to end them on cancellation,
3333
since the program otherwise doesn't allow graceful termination.
3434

3535
=== Executor
@@ -42,7 +42,7 @@ It will be assigned to the `cobalt::this_thread::get_executor()` .
4242
[#main-allocator]
4343

4444
It also creates a memory resource that will be used as a default for internal memory allocations.
45-
It will be assigned to the `thread_local` to the `cobalt::this_thread::get_default_resource()`.
45+
It will be assigned to `cobalt::this_thread::get_default_resource()`.
4646

4747
[#main-promise]
4848
=== Promise

doc/reference/op.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An operation in `cobalt` is an <<awaitable, awaitable>> wrapping an `asio` opera
66
[#use_op]
77
=== use_op
88

9-
The `use_op` token is the direct to create an op,
9+
The `use_op` token is the direct way to create an op,
1010
i.e. using `cobalt::use_op` as the completion token will create the required awaitable.
1111

1212
[source,cpp]

doc/reference/race.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cobalt::promise<void> do_wait()
2020
<1> Wait for a variadic set of <<awaitable, awaitables>>
2121
<2> wait for a vector of <<awaitable, awaitables>>
2222

23-
The first parameter so `race` can be a https://en.cppreference.com/w/cpp/named_req/UniformRandomBitGenerator::[uniform random bit generator].
23+
The first parameter so `race` can be a https://en.cppreference.com/w/cpp/named_req/UniformRandomBitGenerator[uniform random bit generator].
2424

2525

2626
.Signatures of race

doc/reference/task.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Otherwise, it'll default to the thread_local executor.
3131
[#task-allocator]
3232

3333
The memory resource is *NOT* taken from the `thread_local` <<this_thread, get_default_resource>> function,
34-
but `pmr::get_default_resource(),
34+
but `pmr::get_default_resource()`,
3535
unless a `std::allocator_arg` is used in any position followed by a `polymorphic_allocator` argument.
3636

3737
[source, cpp]

doc/reference/thread.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cobalt::thread my_thread()
1515
----
1616
<1> get the executor `thread` running on
1717
<2> Use it with an asio object
18-
<3> `co_await` an cobalt operation
18+
<3> `co_await` a cobalt operation
1919

2020
To use a thread you can use it like a `std::thread`:
2121

@@ -58,7 +58,7 @@ It will be assigned to the `cobalt::this_thread::get_executor()` .
5858
[#thread-allocator]
5959

6060
It also creates a memory resource that will be used as a default for internal memory allocations.
61-
It will be assigned to the `thread_local` to the `cobalt::this_thread::get_default_resource()`.
61+
It will be assigned to `cobalt::this_thread::get_default_resource()`.
6262

6363
[#thread-outline]
6464
=== Outline

doc/reference/with.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ that returns an <<awaitable, awaitable>> or by providing the teardown as the thi
2424

2525
[source,cpp]
2626
----
27-
using ws_stream = beast::websocket::stream<asio::ip::tcp::socket>>;
27+
using ws_stream = beast::websocket::stream<asio::ip::tcp::socket>;
2828
cobalt::promise<ws_stream> connect(urls::url); // <1>
2929
cobalt::promise<void> disconnect(ws_stream &ws); // <2>
3030

0 commit comments

Comments
 (0)