From cd140a84b353f2037ceed043625101c3c350b4ba Mon Sep 17 00:00:00 2001 From: Tyler Tidman Date: Mon, 18 Dec 2023 10:59:14 -0500 Subject: [PATCH] Put in a reminder about the rules for english ordinals --- funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs.go b/funcs.go index 15f0df4..0083bd7 100644 --- a/funcs.go +++ b/funcs.go @@ -51,7 +51,7 @@ func ordinal(num int, lang string) string { switch lang { case "en": switch { - case num > 10 && num < 20: + case num > 10 && num < 14: // 11th, 12th, 13th return fmt.Sprintf("%dth", num) case num%10 == 1: return fmt.Sprintf("%dst", num)