From 640392a6e4f6f81adf6ecd8d7740ee7a6f2faec5 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 21 Nov 2022 18:48:26 +0100 Subject: [PATCH] Fix comment in instrumenter.instrument --- instrumenter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/instrumenter.go b/instrumenter.go index 95734b5..7f5fe14 100644 --- a/instrumenter.go +++ b/instrumenter.go @@ -43,8 +43,9 @@ type instrumenter struct { exprs int // counter to generate unique variables for switch expressions } -// instrument modifies the code of the Go package in dir by adding counters for -// code coverage. If base is given, only that file is instrumented. +// instrument modifies the code of the Go package in srcDir by adding counters +// for code coverage, writing the instrumented code to dstDir. +// If base is given, only that file is instrumented. func (i *instrumenter) instrument(srcDir, base, dstDir string) { i.fset = token.NewFileSet()