Fix some typos. (#3843)

This commit is contained in:
Bruce Mitchener 2024-02-09 01:59:52 +07:00 committed by GitHub
parent 0879504796
commit 3a6fb2fcaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -2041,7 +2041,7 @@
returned by `fmt::system_category()`
(https://github.com/fmtlib/fmt/issues/2274,
https://github.com/fmtlib/fmt/pull/2275). The latter is
similar to `std::sytem_category` but correctly handles UTF-8.
similar to `std::system_category` but correctly handles UTF-8.
Thanks @phprus.
- Replaced `fmt::error_code` with `std::error_code` and made it

View File

@ -2940,7 +2940,7 @@ FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt,
template <typename OutputIt, typename Sentinel = OutputIt>
struct format_to_result {
/** Iterator pointing to just after the last succesful write in the range. */
/** Iterator pointing to just after the last successful write in the range. */
OutputIt out;
/** Sentinel indicating the end of the output range. */
Sentinel out_last;

View File

@ -517,7 +517,7 @@ TEST(locale_test, format) {
fmt::format(small_grouping_loc, "{:L}", max_value<uint32_t>()));
}
TEST(locale_test, format_detault_align) {
TEST(locale_test, format_default_align) {
auto loc = std::locale({}, new special_grouping<char>());
EXPECT_EQ(" 12,345", fmt::format(loc, "{:8L}", 12345));
}