Skip to content

Commit a53278a

Browse files
committed
Fix some typos
1 parent 6abef73 commit a53278a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ req.push("INCR", "key");
170170
req.push("QUIT");
171171
```
172172

173-
and its response also has three comamnds and can be read in the
173+
and its response also has three commands and can be read in the
174174
following response object
175175

176176
```cpp
@@ -447,7 +447,7 @@ main motivations for choosing an echo server are
447447

448448
* Simple to implement and does not require expertise level in most languages.
449449
* I/O bound: Echo servers have very low CPU consumption in general
450-
and therefore are excelent to measure how a program handles concurrent requests.
450+
and therefore are excellent to measure how a program handles concurrent requests.
451451
* It simulates very well a typical backend in regard to concurrency.
452452

453453
I also imposed some constraints on the implementations
@@ -510,7 +510,7 @@ in the graph, the reasons are
510510
I don't know for sure why it is so slow, I suppose it has
511511
something to do with its lack of automatic
512512
[pipelining](https://redis.io/docs/manual/pipelining/) support.
513-
In fact, the more TCP connections I lauch the worse its
513+
In fact, the more TCP connections I launch the worse its
514514
performance gets.
515515

516516
* Libuv: I left it out because it would require me writing to much
@@ -721,11 +721,11 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php.
721721
makes it simpler to use the `requirepass` configuration in Redis.
722722

723723
* (Issue [189](https://github.com/boostorg/redis/issues/189)).
724-
Fixes narrowing convertion by using `std::size_t` instead of
724+
Fixes narrowing conversion by using `std::size_t` instead of
725725
`std::uint64_t` for the sizes of bulks and aggregates. The code
726726
relies now on `std::from_chars` returning an error if a value
727727
greater than 32 is received on platforms on which the size
728-
of`std::size_t` is 32.
728+
of `std::size_t` is 32.
729729

730730

731731
### Boost 1.84 (First release in Boost)
@@ -797,7 +797,7 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php.
797797
would wait for a response to arrive before sending the next one. Now requests
798798
are continuously coalesced and written to the socket. `request::coalesce`
799799
became unnecessary and was removed. I could measure significative performance
800-
gains with theses changes.
800+
gains with these changes.
801801

802802
* Improves serialization examples using Boost.Describe to serialize to JSON and protobuf. See
803803
cpp20_json.cpp and cpp20_protobuf.cpp for more details.
@@ -1004,7 +1004,7 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php.
10041004
* Fixes a bug in the `connection::async_run(host, port)` overload
10051005
that was causing crashes on reconnection.
10061006

1007-
* Fixes the executor usage in the connection class. Before theses
1007+
* Fixes the executor usage in the connection class. Before these
10081008
changes it was imposing `any_io_executor` on users.
10091009

10101010
* `connection::async_receiver_event` is not cancelled anymore when

include/boost/redis/connection.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class run_op {
405405

406406
conn_->reset();
407407

408-
// Note: Oder is important here because the writer might
408+
// Note: Order is important here because the writer might
409409
// trigger an async_write before the async_hello thereby
410410
// causing an authentication problem.
411411
BOOST_ASIO_CORO_YIELD
@@ -1140,7 +1140,7 @@ class basic_connection {
11401140
// until the parsing of a complete message ends.
11411141
//
11421142
// 2. On a new message, in which case we have to determine
1143-
// whether the next messag is a push or a response.
1143+
// whether the next message is a push or a response.
11441144
//
11451145
if (!on_push_) // Prepare for new message.
11461146
on_push_ = is_next_push();
@@ -1223,7 +1223,7 @@ class basic_connection {
12231223
* This connection type uses the asio::any_io_executor and
12241224
* asio::any_completion_token to reduce compilation times.
12251225
*
1226-
* For documentaiton of each member function see
1226+
* For documentation of each member function see
12271227
* `boost::redis::basic_connection`.
12281228
*/
12291229
class connection {

include/boost/redis/detail/runner.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class runner_op {
144144

145145
conn_->reset();
146146

147-
// Note: Oder is important here because the writer might
147+
// Note: Order is important here because the writer might
148148
// trigger an async_write before the async_hello thereby
149149
// causing an authentication problem.
150150
BOOST_ASIO_CORO_YIELD

include/boost/redis/usage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace boost::redis
1515
*
1616
* @note: To simplify the implementation, the commands_sent and
1717
* bytes_sent in the struct below are computed just before writing to
18-
* the socket, which means on error they might not represent exaclty
18+
* the socket, which means on error they might not represent exactly
1919
* what has been received by the Redis server.
2020
*/
2121
struct usage {

test/test_conn_exec_retry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(request_retry_true)
113113
st.expires_after(std::chrono::seconds{1});
114114
st.async_wait([&](auto){
115115
// Cancels the request before receiving the response. This
116-
// should cause the thrid request to not complete with error
116+
// should cause the third request to not complete with error
117117
// since it has cancel_if_unresponded = true and cancellation
118118
// comes after it was written.
119119
conn->cancel(operation::run);

0 commit comments

Comments
 (0)