diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 924bfaff..163f2e4e 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -451,10 +451,10 @@ FMT_END_DETAIL_NAMESPACE template struct formatter, Char> : formatter { - FMT_CONSTEXPR FMT_INLINE void generate_defalut_spec(char) { + FMT_CONSTEXPR FMT_INLINE void generate_default_spec(char) { this->specs = {"%Y-%m-%d %H:%M:%S", 17}; } - FMT_CONSTEXPR FMT_INLINE void generate_defalut_spec(wchar_t) { + FMT_CONSTEXPR FMT_INLINE void generate_default_spec(wchar_t) { this->specs = {L"%Y-%m-%d %H:%M:%S", 17}; } @@ -465,7 +465,7 @@ struct formatter, auto end = it; while (end != ctx.end() && *end != '}') ++end; if (end == it) { - generate_defalut_spec(typename ParseContext::char_type{}); + generate_default_spec(typename ParseContext::char_type{}); } else { this->specs = {it, detail::to_unsigned(end - it)}; }