From 3f294935c00605395a04bebd9bb34aad50cb58c3 Mon Sep 17 00:00:00 2001 From: Eli Treuherz <1574403+treuherz@users.noreply.github.com> Date: Thu, 25 Apr 2019 09:12:58 +0100 Subject: [PATCH] Fix typo in "unrecognised format" error --- parseany.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parseany.go b/parseany.go index a3f9141..9205ca5 100644 --- a/parseany.go +++ b/parseany.go @@ -1510,7 +1510,7 @@ iterRunes: p.format = []byte("2006") return p, nil } else if len(datestr) < 4 { - return nil, fmt.Errorf("unrecognized format, to short %v", datestr) + return nil, fmt.Errorf("unrecognized format, too short %v", datestr) } if !t.IsZero() { if loc == nil {