Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Viatorus committed Sep 23, 2024
1 parent 9ccccea commit 16b8369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/emio/detail/args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ class args_span_with_str : public args_span<Arg> {
}

/**
* Returns if it is just an empty plain string with no arguments passed.
* @return True, if the string is empty, otherwise false.
* Returns if it is just an empty plain string with no arguments.
* @return True, if the string is empty without any arguments, otherwise false.
*/
[[nodiscard]] constexpr bool is_empty() const noexcept {
[[nodiscard]] constexpr bool empty() const noexcept {
return is_plain_str() && get_str().value().empty();
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/test_format_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ TEST_CASE("default constructed format_args", "[format_string]") {
CHECK(args.is_plain_str());
CHECK(args.get_str().value().empty());
CHECK(args.get_args().empty());
CHECK(args.is_empty());
CHECK(args.empty());

CHECK(emio::vformat(args).value() == "");
CHECK(emio::format("{}", args).value() == "");
Expand Down

0 comments on commit 16b8369

Please sign in to comment.