Skip to content

Commit

Permalink
Fix some typos. (fmtlib#3843)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and happymonkey1 committed Apr 6, 2024
1 parent f9165b4 commit dcebf64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/xchar-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit dcebf64

Please sign in to comment.