Skip to content

Commit ab161a7

Browse files
authored
Fix some typos in comments (fmtlib#4448)
- s/instantion/instantiation/ - s/uninitalized/uninitialized/ - s/costexpr/constexpr/ Signed-off-by: Kefu Chai <[email protected]>
1 parent b5266fd commit ab161a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/fmt/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ template <typename Char> class basic_string_view {
539539
FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) {
540540
#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
541541
if (std::is_same<Char, char>::value && !detail::is_constant_evaluated()) {
542-
size_ = __builtin_strlen(detail::narrow(s)); // strlen is not costexpr.
542+
size_ = __builtin_strlen(detail::narrow(s)); // strlen is not constexpr.
543543
return;
544544
}
545545
#endif
@@ -1068,7 +1068,7 @@ template <typename Char> struct named_arg_info {
10681068
int id;
10691069
};
10701070

1071-
// named_args is non-const to suppress a bogus -Wmaybe-uninitalized in gcc 13.
1071+
// named_args is non-const to suppress a bogus -Wmaybe-uninitialized in gcc 13.
10721072
template <typename Char>
10731073
FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args,
10741074
int named_arg_index,

include/fmt/ostream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
FMT_BEGIN_NAMESPACE
3434
namespace detail {
3535

36-
// Generate a unique explicit instantion in every translation unit using a tag
37-
// type in an anonymous namespace.
36+
// Generate a unique explicit instantiation in every translation unit using a
37+
// tag type in an anonymous namespace.
3838
namespace {
3939
struct file_access_tag {};
4040
} // namespace

0 commit comments

Comments
 (0)