Skip to content

Commit 2d839bb

Browse files
committed
Fix format_to_n
1 parent 5bc56e2 commit 2d839bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ auto format_to_n(OutputIt out, size_t n, const S& fmt, T&&... args)
522522
-> format_to_n_result<OutputIt> {
523523
using traits = detail::fixed_buffer_traits;
524524
auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
525-
fmt::format_to(std::back_inserter(buf), fmt, std::forward<T>(args)...);
525+
fmt::format_to(appender(buf), fmt, std::forward<T>(args)...);
526526
return {buf.out(), buf.count()};
527527
}
528528

0 commit comments

Comments
 (0)