From 21a295c272f7ee809774805fd8e31361ac882be2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 25 Mar 2020 08:14:31 -0700 Subject: [PATCH] Undo comment change --- include/fmt/format-inl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 674bddbf..76e5682b 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -1163,8 +1163,7 @@ int snprintf_float(T value, int precision, float_specs specs, auto size = to_unsigned(result); // Size equal to capacity means that the last character was truncated. if (size >= capacity) { - // Add 1 for the terminating '\0'. - buf.reserve(size + offset + 1); + buf.reserve(size + offset + 1); // Add 1 for the terminating '\0'. continue; } auto is_digit = [](char c) { return c >= '0' && c <= '9'; };