From b1075acb7aa8585c7d4849c3f042be106d430946 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sat, 3 May 2025 23:32:29 +0200 Subject: [PATCH] Fix some typos --- doc/reference/environment.adoc | 4 ++-- doc/version2.adoc | 2 +- include/boost/process/v1/async.hpp | 2 +- include/boost/process/v1/async_pipe.hpp | 2 +- include/boost/process/v1/child.hpp | 2 +- include/boost/process/v2/environment.hpp | 2 +- test/v2/target.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/reference/environment.adoc b/doc/reference/environment.adoc index b861285da..dac0bdf46 100644 --- a/doc/reference/environment.adoc +++ b/doc/reference/environment.adoc @@ -3,7 +3,7 @@ === `environment` -The `environment` header provides facilities to maniuplate the current environment and set it for new processes. +The `environment` header provides facilities to manipulate the current environment and set it for new processes. An environment is a a `range` of `T` fulfilling these requirements: @@ -22,7 +22,7 @@ namespace environment // A char traits type that reflects the OS rules for string representing environment keys. /* Can be an alias of std::char_traits. May only be defined for `char` and `wchar_t`. * - * Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect + * Windows treats keys as case-insensitive yet preserving. The char traits are made to reflect * that behaviour. */ template diff --git a/doc/version2.adoc b/doc/version2.adoc index 1af14c8c5..d5ada523f 100644 --- a/doc/version2.adoc +++ b/doc/version2.adoc @@ -13,7 +13,7 @@ The major changes are * separate compilation * fd safe by default -Version 2 is now the defauled. In order to discourage usage of the deprecated v1, it's documentation has been removed. +Version 2 is now the default. In order to discourage usage of the deprecated v1, it's documentation has been removed. == Simplified Interface diff --git a/include/boost/process/v1/async.hpp b/include/boost/process/v1/async.hpp index d701d921f..d70970217 100644 --- a/include/boost/process/v1/async.hpp +++ b/include/boost/process/v1/async.hpp @@ -114,7 +114,7 @@ io_context ios; child c("ls", ios, on_exit=[](int exit, const std::error_code& ec_in){}); std::future exit_code; -chlid c2("ls", ios, on_exit=exit_code); +child c2("ls", ios, on_exit=exit_code); \endcode diff --git a/include/boost/process/v1/async_pipe.hpp b/include/boost/process/v1/async_pipe.hpp index 642c18943..f14ee9fd3 100644 --- a/include/boost/process/v1/async_pipe.hpp +++ b/include/boost/process/v1/async_pipe.hpp @@ -26,7 +26,7 @@ namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { #if defined(BOOST_PROCESS_DOXYGEN) -/** Class implementing an asnychronous I/O-Object for use with boost.asio. +/** Class implementing an asynchronous I/O-Object for use with boost.asio. * It is based on the corresponding I/O Object, that is either boost::asio::windows::stream_handle or * boost::asio::posix::stream_descriptor. * diff --git a/include/boost/process/v1/child.hpp b/include/boost/process/v1/child.hpp index 5967f9ed4..41b2410c2 100644 --- a/include/boost/process/v1/child.hpp +++ b/include/boost/process/v1/child.hpp @@ -128,7 +128,7 @@ class child /** Same as valid, for convenience. */ explicit operator bool() const; - /** Check if the the chlid process is in any process group. */ + /** Check if the the child process is in any process group. */ bool in_group() const; /** \overload bool in_group() const */ diff --git a/include/boost/process/v2/environment.hpp b/include/boost/process/v2/environment.hpp index 0c6a0875b..350eadec0 100644 --- a/include/boost/process/v2/environment.hpp +++ b/include/boost/process/v2/environment.hpp @@ -40,7 +40,7 @@ namespace environment /// A char traits type that reflects the OS rules for string representing environment keys. /** Can be an alias of std::char_traits. May only be defined for `char` and `wchar_t`. * - * Windows treats keys as case-insensitive yet perserving. The char traits are made to reflect + * Windows treats keys as case-insensitive yet preserving. The char traits are made to reflect * that behaviour. */ template diff --git a/test/v2/target.cpp b/test/v2/target.cpp index 97256d6c1..1810f9eab 100644 --- a/test/v2/target.cpp +++ b/test/v2/target.cpp @@ -85,7 +85,7 @@ int main(int argc, char * argv[]) { if (kind == CTRL_CLOSE_EVENT) { - // windows doesn't like us doing antyhing else + // windows doesn't like us doing anything else ::exit(0); if (tim_p != nullptr) tim_p->cancel();