Undo comment change

This commit is contained in:
Victor Zverovich 2020-03-25 08:14:31 -07:00
parent 96c68afe69
commit 21a295c272

View File

@ -1163,8 +1163,7 @@ int snprintf_float(T value, int precision, float_specs specs,
auto size = to_unsigned(result); auto size = to_unsigned(result);
// Size equal to capacity means that the last character was truncated. // Size equal to capacity means that the last character was truncated.
if (size >= capacity) { if (size >= capacity) {
// Add 1 for the terminating '\0'. buf.reserve(size + offset + 1); // Add 1 for the terminating '\0'.
buf.reserve(size + offset + 1);
continue; continue;
} }
auto is_digit = [](char c) { return c >= '0' && c <= '9'; }; auto is_digit = [](char c) { return c >= '0' && c <= '9'; };