From a0e66b1c46ec57218f8a95a21ace7cbbceb29ec2 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Thu, 10 Aug 2017 21:58:14 +1000 Subject: Document cuts --- debugon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debugon.go') diff --git a/debugon.go b/debugon.go index 4e68db3..9154472 100644 --- a/debugon.go +++ b/debugon.go @@ -32,7 +32,7 @@ type debugParser struct { } func (dp *debugParser) Name() string { - if len(activeParsers) > 2 && activeParsers[len(activeParsers)-2].Var == dp.Var { + if len(activeParsers) > 1 && activeParsers[len(activeParsers)-2].Var == dp.Var { return dp.Match } return dp.Var -- cgit v1.2.3