Fixed grammar in comment

This commit is contained in:
Eduard Urbach 2019-09-06 08:24:08 +09:00
parent f1adae4337
commit 8244298013
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -58,7 +58,7 @@ func Date(date string) bool {
return err == nil
}
// YearMonth tells you whether the date contain only the year and the month.
// YearMonth tells you whether the date contains only the year and the month.
func YearMonth(date string) bool {
if len(date) != len(YearMonthFormat) || strings.HasPrefix(date, "0001") {
return false