From 90b6cdfdc6a7c5754df3ab36408632f489a7f785 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 15 Jan 2024 22:13:21 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Run=20clang-format,=20adjust=20f?= =?UTF-8?q?ormat=5Fto=5Fresult=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fmt/base.h | 2 +- test/base-test.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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;