Skip to content

Commit

Permalink
Fix spelling errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Dec 1, 2024
1 parent 480e88b commit a12ecff
Show file tree
Hide file tree
Showing 21 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions asio/include/asio/basic_datagram_socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class basic_datagram_socket
* call will block until the data has been sent successfully or an error
* occurs.
*
* @param buffers One ore more data buffers to be sent on the socket.
* @param buffers One or more data buffers to be sent on the socket.
*
* @returns The number of bytes sent.
*
Expand Down Expand Up @@ -377,7 +377,7 @@ class basic_datagram_socket
* call will block until the data has been sent successfully or an error
* occurs.
*
* @param buffers One ore more data buffers to be sent on the socket.
* @param buffers One or more data buffers to be sent on the socket.
*
* @param flags Flags specifying how the send call is to be made.
*
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/basic_raw_socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class basic_raw_socket
* This function is used to send data on the raw socket. The function call
* will block until the data has been sent successfully or an error occurs.
*
* @param buffers One ore more data buffers to be sent on the socket.
* @param buffers One or more data buffers to be sent on the socket.
*
* @returns The number of bytes sent.
*
Expand Down Expand Up @@ -370,7 +370,7 @@ class basic_raw_socket
* This function is used to send data on the raw socket. The function call
* will block until the data has been sent successfully or an error occurs.
*
* @param buffers One ore more data buffers to be sent on the socket.
* @param buffers One or more data buffers to be sent on the socket.
*
* @param flags Flags specifying how the send call is to be made.
*
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/detail/service_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ class service_registry
bool has_service() const;

private:
// Initalise a service's key when the key_type typedef is not available.
// Initialise a service's key when the key_type typedef is not available.
template <typename Service>
static void init_key(execution_context::service::key& key, ...);

#if !defined(ASIO_NO_TYPEID)
// Initalise a service's key when the key_type typedef is available.
// Initialise a service's key when the key_type typedef is available.
template <typename Service>
static void init_key(execution_context::service::key& key,
enable_if_t<is_base_of<typename Service::key_type, Service>::value>*);
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/detail/timer_queue_ptime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace detail {

struct forwarding_posix_time_traits : time_traits<boost::posix_time::ptime> {};

// Template specialisation for the commonly used instantation.
// Template specialisation for the commonly used instantiation.
template <>
class timer_queue<time_traits<boost::posix_time::ptime>>
: public timer_queue_base
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/detail/win_iocp_io_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class win_iocp_io_context

// Flag to indicate whether there is an in-flight stop event. Every event
// posted using PostQueuedCompletionStatus consumes non-paged pool, so to
// avoid exhausting this resouce we limit the number of outstanding events.
// avoid exhausting this resource we limit the number of outstanding events.
long stop_event_posted_;

// Flag to indicate whether the service has been shut down.
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/disposition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace asio {

/// Traits type to adapt arbtirary error types as dispositions.
/// Traits type to adapt arbitrary error types as dispositions.
/**
* This type may be specialised for user-defined types, to allow them to be
* treated as a disposition by asio.
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/execution/any_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class any_executor
*
* For example:
* @code execution::any_executor<execution::blocking_t::possibly_t> ex = ...;
* auto ex2 = asio::requre(ex, execution::blocking.possibly); @endcode
* auto ex2 = asio::require(ex, execution::blocking.possibly); @endcode
*/
template <typename Property>
any_executor require(Property) const;
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/execution/impl/bad_executor.ipp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// exection/impl/bad_executor.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// execution/impl/bad_executor.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/experimental/impl/parallel_group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct parallel_group_op_result
bool has_value_;
};

// Proxy completion handler for the group of parallel operatations. Unpacks and
// Proxy completion handler for the group of parallel operations. Unpacks and
// concatenates the individual operations' results, and invokes the user's
// completion handler.
template <typename Handler, typename... Ops>
Expand Down Expand Up @@ -393,7 +393,7 @@ void parallel_group_launch(Condition cancellation_condition, Handler handler,
Condition, Handler, Ops...>>(state);
}

// Proxy completion handler for the ranged group of parallel operatations.
// Proxy completion handler for the ranged group of parallel operations.
// Unpacks and recombines the individual operations' results, and invokes the
// user's completion handler.
template <typename Handler, typename Op, typename Allocator>
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/impl/use_future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class promise_invoker
decay_t<F> f_;
};

// An executor that adapts the system_executor to capture any exeption thrown
// An executor that adapts the system_executor to capture any exception thrown
// by a submitted function object and save it into a promise.
template <typename T, typename Blocking = execution::blocking_t::possibly_t>
class promise_executor
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio/io_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class io_context
* @note Calling the run() function from a thread that is currently calling
* one of run(), run_one(), run_for(), run_until(), poll() or poll_one() on
* the same io_context object may introduce the potential for deadlock. It is
* the caller's reponsibility to avoid this.
* the caller's responsibility to avoid this.
*
* The poll() function may also be used to dispatch ready handlers, but
* without blocking.
Expand Down Expand Up @@ -347,7 +347,7 @@ class io_context
* @note Calling the run_one() function from a thread that is currently
* calling one of run(), run_one(), run_for(), run_until(), poll() or
* poll_one() on the same io_context object may introduce the potential for
* deadlock. It is the caller's reponsibility to avoid this.
* deadlock. It is the caller's responsibility to avoid this.
*/
ASIO_DECL count_type run_one();

Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/ip/detail/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace asio {
namespace ip {
namespace detail {

// Helper class for implementating an IP endpoint.
// Helper class for implementing an IP endpoint.
class endpoint
{
public:
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/use_future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class use_future_t
/**
* The @c package function is used to adapt a function object as a packaged
* task. When this adapter is passed as a completion token to an asynchronous
* operation, the result of the function object is retuned via a std::future.
* operation, the result of the function object is returned via a std::future.
*
* @par Example
*
Expand Down
2 changes: 1 addition & 1 deletion asio/src/examples/cpp11/operations/composed_6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct async_write_message_initiation
// A steady timer used for introducing a delay.
std::unique_ptr<asio::steady_timer> delay_timer_;

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our intermediate completion handler is implemented as a
// state machine.
enum { starting, waiting, writing } state_;
Expand Down
2 changes: 1 addition & 1 deletion asio/src/examples/cpp11/operations/composed_7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct async_write_messages_implementation
// A steady timer used for introducing a delay.
std::unique_ptr<asio::steady_timer> delay_timer_;

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our implementation is a state machine.
enum { starting, waiting, writing } state_;

Expand Down
8 changes: 4 additions & 4 deletions asio/src/examples/cpp11/porthopper/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int main(int argc, char* argv[])

// Try to receive a frame from the server on the new data socket. If we
// successfully receive a frame on this new data socket we can consider
// the renegotation complete. In that case we will close the old data
// the renegotiation complete. In that case we will close the old data
// socket, which will cause any outstanding receive operation on it to be
// cancelled.
frame f1;
Expand All @@ -117,7 +117,7 @@ int main(int argc, char* argv[])
bool done = false;
while (!done)
{
// Even though we're performing a renegotation, we want to continue
// Even though we're performing a renegotiation, we want to continue
// receiving data as smoothly as possible. Therefore we will continue to
// try to receive a frame from the server on the old data socket. If we
// receive a frame on this socket we will interrupt the io_context,
Expand Down Expand Up @@ -146,7 +146,7 @@ int main(int argc, char* argv[])
io_context.run();

// If the io_context.run() was interrupted then we have received a frame
// on the old data socket. We need to keep waiting for the renegotation
// on the old data socket. We need to keep waiting for the renegotiation
// operations to complete.
if (!done)
{
Expand All @@ -159,7 +159,7 @@ int main(int argc, char* argv[])
}

// Since the loop has finished, we have either successfully completed
// the renegotation, or an error has occurred. First we'll check for
// the renegotiation, or an error has occurred. First we'll check for
// errors.
if (control_result)
throw std::system_error(control_result);
Expand Down
2 changes: 1 addition & 1 deletion asio/src/examples/cpp11/timers/time_t_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct time_t_wait_traits
}

// Determine how long until the clock should be next polled to determine
// whether the absoluate time has been reached.
// whether the absolute time has been reached.
static time_t_clock::duration to_wait_duration(
const time_t_clock::time_point& t)
{
Expand Down
2 changes: 1 addition & 1 deletion asio/src/examples/cpp14/operations/composed_6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ auto async_write_messages(tcp::socket& socket,
// A steady timer used for introducing a delay.
std::unique_ptr<asio::steady_timer> delay_timer_;

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our intermediate completion handler is implemented as a
// state machine.
enum { starting, waiting, writing } state_;
Expand Down
4 changes: 2 additions & 2 deletions asio/src/examples/cpp14/operations/composed_7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ auto async_write_messages(tcp::socket& socket,
std::unique_ptr<asio::steady_timer> delay_timer(
new asio::steady_timer(socket.get_executor()));

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our implementation is a state machine.
enum { starting, waiting, writing };

Expand Down Expand Up @@ -116,7 +116,7 @@ auto async_write_messages(tcp::socket& socket,
// A steady timer used for introducing a delay.
delay_timer = std::move(delay_timer),

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our implementation is a state machine.
state = starting
]
Expand Down
2 changes: 1 addition & 1 deletion asio/src/examples/cpp20/operations/composed_6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ auto async_write_messages(tcp::socket& socket,
// A steady timer used for introducing a delay.
std::unique_ptr<asio::steady_timer> delay_timer_;

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our intermediate completion handler is implemented as a
// state machine.
enum { starting, waiting, writing } state_;
Expand Down
4 changes: 2 additions & 2 deletions asio/src/examples/cpp20/operations/composed_7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ auto async_write_messages(tcp::socket& socket,
std::unique_ptr<asio::steady_timer> delay_timer(
new asio::steady_timer(socket.get_executor()));

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our implementation is a state machine.
enum { starting, waiting, writing };

Expand Down Expand Up @@ -117,7 +117,7 @@ auto async_write_messages(tcp::socket& socket,
// A steady timer used for introducing a delay.
delay_timer = std::move(delay_timer),

// To manage the cycle between the multiple underlying asychronous
// To manage the cycle between the multiple underlying asynchronous
// operations, our implementation is a state machine.
state = starting
]
Expand Down

0 comments on commit a12ecff

Please sign in to comment.