diff --git a/include/fmt/format.h b/include/fmt/format.h index c9abfe48cdd7..f74f53e980b9 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2543,7 +2543,7 @@ FMT_CONSTEXPR void parse_format_string(basic_string_view format_str, // Doing two passes with memchr (one for '{' and another for '}') is up to // 2.5x faster than the naive one-pass implementation on big format strings. const Char* p = begin; - if (*begin != '{' && !find(begin, end, '{', p)) + if (*begin != '{' && !find(begin + 1, end, '{', p)) return write(begin, end); write(begin, p); ++p;