Skip to content

Commit

Permalink
Added missing colon and removed redundant include
Browse files Browse the repository at this point in the history
  • Loading branch information
felix642 committed Nov 28, 2023
1 parent 430070b commit 45ca5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <cstdlib>
#include <exception>
#include <memory>
#include <source_location>
#include <thread>
#include <type_traits>
#include <typeinfo>
Expand Down Expand Up @@ -252,7 +251,7 @@ struct formatter<std::source_location, Char,
out = detail::write<Char>(out, loc.line());
out = detail::write<Char>(out, Char(':'));
out = detail::write<Char>(out, loc.column());
out = detail::write<Char>(out, Char(' '));
out = detail::write<Char>(out, ": ");
out = detail::write<Char>(out, loc.function_name());
return out;
}
Expand Down
2 changes: 1 addition & 1 deletion test/std-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ TEST(std_test, source_location) {
// We don't know the full path of this file so we only check the end of the
// path.
EXPECT_TRUE(fmt::format("{}", std::source_location::current())
.ends_with("std-test.cc:69:3 virtual void "
.ends_with("std-test.cc:69:3: virtual void "
"std_test_source_location_Test::TestBody()"));
}
#endif
Expand Down

0 comments on commit 45ca5e9

Please sign in to comment.