Skip to content

Commit

Permalink
Clarify that format_to[_n] do not append a terminating null
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 29, 2021
1 parent cb0f177 commit c1313c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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**::
Expand Down Expand Up @@ -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 <typename OutputIt, typename... T,
Expand Down

0 comments on commit c1313c2

Please sign in to comment.