diff --git a/include/fmt/base.h b/include/fmt/base.h index d6ea5173..f5a7b37c 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2876,7 +2876,7 @@ FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string fmt, template struct format_to_result { - /** Iterator past the end of the last write. */ + /** Iterator pointing to just after the last succesful write in the range. */ OutputIt out; /** Sentinel indicating the end of the output range. */ OutputSen out_last; diff --git a/test/base-test.cc b/test/base-test.cc index 79022f1e..2cd8ffed 100644 --- a/test/base-test.cc +++ b/test/base-test.cc @@ -9,6 +9,8 @@ #include "test-assert.h" // clang-format on +#include "fmt/base.h" + #include // INT_MAX #include // std::strlen #include // std::equal_to @@ -17,7 +19,6 @@ #include // std::string #include // std::is_same -#include "fmt/base.h" #include "gmock/gmock.h" using fmt::string_view;