From 77b2f4f3b8d4fd7c78a85fa173fe56555bc2214e Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 18 Jan 2024 06:25:07 +0700 Subject: [PATCH] Fix some typos. (#1143) --- include/gsl/byte | 2 +- include/gsl/span | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/byte b/include/gsl/byte index dc4b742..7f30ae2 100644 --- a/include/gsl/byte +++ b/include/gsl/byte @@ -167,7 +167,7 @@ constexpr byte to_byte(T t) noexcept { static_assert(std::is_same::value, "gsl::to_byte(t) must be provided an unsigned char, otherwise data loss may occur. " - "If you are calling to_byte with an integer contant use: gsl::to_byte() version."); + "If you are calling to_byte with an integer constant use: gsl::to_byte() version."); return byte(t); } diff --git a/include/gsl/span b/include/gsl/span index 3f82a5e..62a8dbd 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -42,7 +42,7 @@ #pragma warning(disable : 4702) // unreachable code // Turn MSVC /analyze rules that generate too much noise. TODO: fix in the tool. -#pragma warning(disable : 26495) // uninitalized member when constructor calls constructor +#pragma warning(disable : 26495) // uninitialized member when constructor calls constructor #pragma warning(disable : 26446) // parser bug does not allow attributes on some templates #endif // _MSC_VER @@ -53,7 +53,7 @@ #define GSL_USE_STATIC_CONSTEXPR_WORKAROUND #endif // !(defined(__cplusplus) && (__cplusplus >= 201703L)) -// GCC 7 does not like the signed unsigned missmatch (size_t ptrdiff_t) +// GCC 7 does not like the signed unsigned mismatch (size_t ptrdiff_t) // While there is a conversion from signed to unsigned, it happens at // compiletime, so the compiler wouldn't have to warn indiscriminately, but // could check if the source value actually doesn't fit into the target type