Mercurial > minori
diff src/core/time.cc @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | 47c9f8502269 |
| children |
line wrap: on
line diff
--- a/src/core/time.cc Sat Jul 25 14:33:03 2026 -0400 +++ b/src/core/time.cc Sat Jul 25 14:54:32 2026 -0400 @@ -75,7 +75,7 @@ const int seconds = std::fmod(amount, minutes_conv) / seconds_conv; const auto add_time_segment = [](std::ostringstream &str, int64_t amount, const std::string_view &singular, - const std::string_view &plural, bool always = false) { + const std::string_view &plural, bool always = false) { if (amount > 0 || always) str << amount << ((amount == 1) ? singular : plural); };
