From c4ba44b1c3e066f98ccc406c15a8c1de170e4709 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 21:29:07 +0200 Subject: fix(markdown): bad condition in finished lexer and missing return value in ast --- mardown/lexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mardown/lexer.go') diff --git a/mardown/lexer.go b/mardown/lexer.go index 7ab393f..4eaaf16 100644 --- a/mardown/lexer.go +++ b/mardown/lexer.go @@ -42,7 +42,7 @@ func (l *lexers) Current() lexer { } func (l *lexers) Finished() bool { - return l.current >= len(l.lexers)-1 + return l.current >= len(l.lexers) } func (l *lexers) String() string { -- cgit v1.2.3