This commit is contained in:
Mars 2025-05-07 02:14:15 -04:00
parent b6b01636f5
commit 8efd85e0a9

View file

@ -23,9 +23,6 @@ namespace {
fn getOrdinalSuffix(const i32 day) -> CStr { fn getOrdinalSuffix(const i32 day) -> CStr {
using matchit::match, matchit::is, matchit::_, matchit::within; using matchit::match, matchit::is, matchit::_, matchit::within;
if (day >= 11 && day <= 13)
return "th";
return match(day % 10)( return match(day % 10)(
is | within(11, 13) = "th", is | within(11, 13) = "th",
is | 1 = "st", is | 1 = "st",