From 5adb13311b6fc1ba595ed22ef05c8c39ae24fcb1 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Mon, 4 Jun 2018 00:06:23 +0100 Subject: [PATCH] testlib: Add missing comment --- internal/testlib/testlib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/testlib/testlib.go b/internal/testlib/testlib.go index 638b47f..34299fe 100644 --- a/internal/testlib/testlib.go +++ b/internal/testlib/testlib.go @@ -38,6 +38,7 @@ func RemoveIfOk(t *testing.T, dir string) { } } +// Rewrite a file with the given contents. func Rewrite(t *testing.T, path, contents string) error { // Safeguard, to make sure we only mess with test files. if !strings.Contains(path, "testlib_") {