From a58274acefadf66ab817cbe5ec0efa62332bda59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Wed, 4 Nov 2015 21:07:39 +0200 Subject: [PATCH] Minor style fix: declare ref first in a loop --- markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.go b/markdown.go index d2dc321..ad36b53 100644 --- a/markdown.go +++ b/markdown.go @@ -454,8 +454,8 @@ func secondPass(p *parser, input []byte) []byte { p.r.Footnotes(&output, func() bool { flags := LIST_ITEM_BEGINNING_OF_LIST for i := 0; i < len(p.notes); i += 1 { - var buf bytes.Buffer ref := p.notes[i] + var buf bytes.Buffer if ref.hasBlock { flags |= LIST_ITEM_CONTAINS_BLOCK p.block(&buf, ref.title)