diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index b938461a2478..83a75623ad8a 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -588,7 +588,7 @@ struct chrono_formatter { } void write_nan() { std::copy_n("nan", 3, out); } - void write_pinf() { std::copy_n("+inf", 4, out); } + void write_pinf() { std::copy_n("inf", 3, out); } void write_ninf() { std::copy_n("-inf", 4, out); } void format_localized(const tm& time, const char* format) {