diff --git a/include/fmt/base.h b/include/fmt/base.h index 05b636d9..a733a918 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -539,7 +539,7 @@ template class basic_string_view { FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) { #if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION if (std::is_same::value && !detail::is_constant_evaluated()) { - size_ = __builtin_strlen(detail::narrow(s)); // strlen is not costexpr. + size_ = __builtin_strlen(detail::narrow(s)); // strlen is not constexpr. return; } #endif @@ -1068,7 +1068,7 @@ template struct named_arg_info { int id; }; -// named_args is non-const to suppress a bogus -Wmaybe-uninitalized in gcc 13. +// named_args is non-const to suppress a bogus -Wmaybe-uninitialized in gcc 13. template FMT_CONSTEXPR void check_for_duplicate(named_arg_info* named_args, int named_arg_index, diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index 7bec4efe..bf2371b7 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -33,8 +33,8 @@ FMT_BEGIN_NAMESPACE namespace detail { -// Generate a unique explicit instantion in every translation unit using a tag -// type in an anonymous namespace. +// Generate a unique explicit instantiation in every translation unit using a +// tag type in an anonymous namespace. namespace { struct file_access_tag {}; } // namespace