Fix a few typos

This commit is contained in:
Dirk Stolle 2025-04-16 02:16:49 +02:00
parent 1e1ccb491e
commit db59ef2a81
6 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ and return type use spans.
``` ```
auto sha1(boost::span<const unsigned char> input, auto sha1(boost::span<const unsigned char> input,
boost::span<unsigned char, SHA_DIGEST_LENGTH> ouput) boost::span<unsigned char, SHA_DIGEST_LENGTH> output)
{ {
SHA_CTX context; SHA_CTX context;
SHA1_Init(&context); SHA1_Init(&context);

View File

@ -30,7 +30,7 @@
#if defined( BOOST_CORE_HAS_CXXABI_H ) #if defined( BOOST_CORE_HAS_CXXABI_H )
# include <cxxabi.h> # include <cxxabi.h>
// For some archtectures (mips, mips64, x86, x86_64) cxxabi.h in Android NDK is implemented by gabi++ library // For some architectures (mips, mips64, x86, x86_64) cxxabi.h in Android NDK is implemented by gabi++ library
// (https://android.googlesource.com/platform/ndk/+/master/sources/cxx-stl/gabi++/), which does not implement // (https://android.googlesource.com/platform/ndk/+/master/sources/cxx-stl/gabi++/), which does not implement
// abi::__cxa_demangle(). We detect this implementation by checking the include guard here. // abi::__cxa_demangle(). We detect this implementation by checking the include guard here.
# if defined( __GABIXX_CXXABI_H__ ) # if defined( __GABIXX_CXXABI_H__ )

View File

@ -37,7 +37,7 @@ namespace boost
/** /**
* Casts a scoped enum to its underlying type. * Casts a scoped enum to its underlying type.
* *
* This function is useful when working with scoped enum classes, which doens't implicitly convert to the underlying type. * This function is useful when working with scoped enum classes, which doesn't implicitly convert to the underlying type.
* @param v A scoped enum. * @param v A scoped enum.
* @returns The underlying type. * @returns The underlying type.
* @throws No-throws. * @throws No-throws.

View File

@ -31,7 +31,7 @@ using std::distance;
*/ */
// struct C {} doesn't wotk with libc++. // struct C {} doesn't work with libc++.
typedef std::forward_iterator_tag C; typedef std::forward_iterator_tag C;
struct T struct T

View File

@ -9,7 +9,7 @@
// objects to be swapped would themselves be from the boost namespace. // objects to be swapped would themselves be from the boost namespace.
// If so, boost::core::invoke_swap itself might be found by argument dependent lookup. // If so, boost::core::invoke_swap itself might be found by argument dependent lookup.
// The implementation of boost::core::invoke_swap resolves this issue by giving // The implementation of boost::core::invoke_swap resolves this issue by giving
// boost::core::invoke_swap two template argumetns, thereby making it less specialized // boost::core::invoke_swap two template arguments, thereby making it less specialized
// than std::swap. // than std::swap.
#include <boost/core/invoke_swap.hpp> #include <boost/core/invoke_swap.hpp>

View File

@ -12,7 +12,7 @@
//Put test class in the global namespace //Put test class in the global namespace
#include "./swap_test_class.hpp" #include "./swap_test_class.hpp"
//Provide swap function in gloabl namespace //Provide swap function in global namespace
void swap(swap_test_class& left, swap_test_class& right) void swap(swap_test_class& left, swap_test_class& right)
{ {
left.swap(right); left.swap(right);