From aa63bac3da4c8dcf78254d1f70563584edcb09f5 Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Fri, 14 Apr 2023 19:28:25 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(docs=5Ftest.go):=20update?= =?UTF-8?q?=20comment=20to=20clarify=20the=20purpose=20of=20the=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_test.go b/docs_test.go index 13533d7bf2..b24e56cbb7 100644 --- a/docs_test.go +++ b/docs_test.go @@ -39,7 +39,7 @@ func TestToTabularToFileBetweenTags(t *testing.T) { expectedDocs, fErr := os.ReadFile("testdata/expected-tabular-markdown-full.md") expect(t, fErr, nil) // read without error - // normalizes \r\n (windows) and \r (mac) into \n (unix) (required for tests to pass on windows) + // normalizes \r\n (windows) and \r (mac) into \n (unix) var normalizeNewlines = func(d []byte) []byte { d = bytes.Replace(d, []byte{13, 10}, []byte{10}, -1) // replace CR LF \r\n (windows) with LF \n (unix) d = bytes.Replace(d, []byte{13}, []byte{10}, -1) // replace CF \r (mac) with LF \n (unix)