From c1313c205786d851251917371b68e8be080797ea Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 29 Aug 2021 12:07:35 -0700 Subject: [PATCH] Clarify that format_to[_n] do not append a terminating null --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index af521e19..ebf44702 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2994,7 +2994,7 @@ auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt { \rst Formats ``args`` according to specifications in ``fmt``, writes the result to the output iterator ``out`` and returns the iterator past the end of the output - range. + range. `format_to` does not append a terminating null character. **Example**:: @@ -3032,6 +3032,7 @@ auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args) Formats ``args`` according to specifications in ``fmt``, writes up to ``n`` characters of the result to the output iterator ``out`` and returns the total (not truncated) output size and the iterator past the end of the output range. + `format_to_n` does not append a terminating null character. \endrst */ template