Skip to content

Commit 3393aef

Browse files
committed
trivial typo fixes
1 parent 5c46b62 commit 3393aef

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

include/boost/redis/connection.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class basic_connection {
102102
, timer_{ex}
103103
{ }
104104

105-
/// Contructs from a context.
105+
/// Constructs from a context.
106106
explicit
107107
basic_connection(
108108
asio::io_context& ioc,
@@ -125,17 +125,17 @@ class basic_connection {
125125
* timeout with value zero will disable health-checks. If the Redis
126126
* server does not respond to a health-check within two times the value
127127
* specified here, it will be considered unresponsive and the connection
128-
* will be closed and a new connection will be stablished.
128+
* will be closed and a new connection will be established.
129129
* 5. Starts read and write operations with the Redis
130130
* server. More specifically it will trigger the write of all
131131
* requests i.e. calls to `async_exec` that happened prior to this
132132
* call.
133133
*
134134
* When a connection is lost for any reason, a new one is
135-
* stablished automatically. To disable reconnection call
135+
* established automatically. To disable reconnection call
136136
* `boost::redis::connection::cancel(operation::reconnection)`.
137137
*
138-
* @param cfg Configuration paramters.
138+
* @param cfg Configuration parameters.
139139
* @param l Logger object. The interface expected is specified in the class `boost::redis::logger`.
140140
* @param token Completion token.
141141
*

include/boost/redis/detail/connection_base.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct writer_op {
265265
conn_->writer_timer_.async_wait(std::move(self));
266266
if (!conn_->is_open() || is_cancelled(self)) {
267267
logger_.trace("writer-op: canceled (3). Exiting ...");
268-
// Notice this is not an error of the op, stoping was
268+
// Notice this is not an error of the op, stopping was
269269
// requested from the outside, so we complete with
270270
// success.
271271
self.complete({});

include/boost/redis/error.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum class error
2323
not_a_number,
2424

2525
/// The maximum depth of a nested response was exceeded.
26-
exceeeds_max_nested_depth,
26+
exceeds_max_nested_depth,
2727

2828
/// Got non boolean value.
2929
unexpected_bool_value,

include/boost/redis/impl/error.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct error_category_impl : system::error_category {
2424
switch(static_cast<error>(ev)) {
2525
case error::invalid_data_type: return "Invalid resp3 type.";
2626
case error::not_a_number: return "Can't convert string to number (maybe forgot to upgrade to RESP3?).";
27-
case error::exceeeds_max_nested_depth: return "Exceeds the maximum number of nested responses.";
27+
case error::exceeds_max_nested_depth: return "Exceeds the maximum number of nested responses.";
2828
case error::unexpected_bool_value: return "Unexpected bool value.";
2929
case error::empty_field: return "Expected field value is empty.";
3030
case error::expects_resp3_simple_type: return "Expects a resp3 simple type.";

include/boost/redis/resp3/impl/parser.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ parser::consume_impl(
199199
commit_elem();
200200
} else {
201201
if (depth_ == max_embedded_depth) {
202-
ec = error::exceeeds_max_nested_depth;
202+
ec = error::exceeds_max_nested_depth;
203203
return {};
204204
}
205205

test/test_low_level.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ generic_response const attr_e1b
409409
test(make_expected(S04e, array_type2{}, boost::redis::error::incompatible_size));\
410410
test(make_expected(S04e, tuple_int_2{}, boost::redis::error::incompatible_size));\
411411
test(make_expected(S04f, array_type2{}, boost::redis::error::nested_aggregate_not_supported));\
412-
test(make_expected(S04g, generic_response{}, boost::redis::error::exceeeds_max_nested_depth));\
412+
test(make_expected(S04g, generic_response{}, boost::redis::error::exceeds_max_nested_depth));\
413413
test(make_expected(S04h, array_e1d));\
414414
test(make_expected(S04h, array_e1e));\
415415
test(make_expected(S04i, set_type{}, boost::redis::error::expects_resp3_set)); \
@@ -502,7 +502,7 @@ BOOST_AUTO_TEST_CASE(cover_error)
502502
{
503503
check_error("boost.redis", boost::redis::error::invalid_data_type);
504504
check_error("boost.redis", boost::redis::error::not_a_number);
505-
check_error("boost.redis", boost::redis::error::exceeeds_max_nested_depth);
505+
check_error("boost.redis", boost::redis::error::exceeds_max_nested_depth);
506506
check_error("boost.redis", boost::redis::error::unexpected_bool_value);
507507
check_error("boost.redis", boost::redis::error::empty_field);
508508
check_error("boost.redis", boost::redis::error::expects_resp3_simple_type);

0 commit comments

Comments
 (0)