From c6f8112a069c66bff99a44f6d9872aa4ca2df807 Mon Sep 17 00:00:00 2001 From: sunmy <7743179+sun_mengyue@user.noreply.gitee.com> Date: Wed, 9 Jun 2021 06:46:14 +0800 Subject: [PATCH] fix typo --- include/fmt/chrono.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)}; }