From 8b77baed18e43c6f8e74c9e8e356fe4cabccaba2 Mon Sep 17 00:00:00 2001 From: yaacov Date: Sat, 7 Mar 2020 15:30:18 +0200 Subject: [PATCH] typo --- v5/pkg/tsl/listener.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v5/pkg/tsl/listener.go b/v5/pkg/tsl/listener.go index cc3fd69..5a7a65e 100644 --- a/v5/pkg/tsl/listener.go +++ b/v5/pkg/tsl/listener.go @@ -134,8 +134,8 @@ func (l *Listener) ExitDateLiteral(c *parser.DateLiteralContext) { l.exitLiteral(DateOp, t) } -// ExitShortDateLiteral is called when exiting the DateLiteral production. -func (l *Listener) ExitShortDateLiteral(c *parser.DateLiteralContext) { +// ExitShortDateLiteral is called when exiting the ShortDateLiteral production. +func (l *Listener) ExitShortDateLiteral(c *parser.ShortDateLiteralContext) { s := c.GetRuleContext().GetText() t, err := time.Parse("2006-01-02", s) if err != nil {