From 82e4553e033bd9351877942494602a1d73873b3f Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Wed, 11 Jan 2023 15:29:00 -0500 Subject: [PATCH] changed switch statement due to an interesting bug I found --- include/spdlog/pattern_formatter-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/pattern_formatter-inl.h b/include/spdlog/pattern_formatter-inl.h index d04e28f4..30648276 100644 --- a/include/spdlog/pattern_formatter-inl.h +++ b/include/spdlog/pattern_formatter-inl.h @@ -1385,7 +1385,7 @@ SPDLOG_INLINE void pattern_formatter::handle_flag_(char flag, details::padding_i formatters_.push_back(details::make_unique>(padding)); break; - case ('['): // start attribute formatting + case ('('): // start attribute formatting formatters_.push_back(details::make_unique(padding)); break; @@ -1397,7 +1397,7 @@ SPDLOG_INLINE void pattern_formatter::handle_flag_(char flag, details::padding_i formatters_.push_back(details::make_unique(padding)); break; - case (']'): // stop attribute formatting + case (')'): // stop attribute formatting formatters_.push_back(details::make_unique(padding)); break;