Skip to content

Commit

Permalink
Fix comment in instrumenter.instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Nov 21, 2022
1 parent 62a16eb commit 640392a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions instrumenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 640392a

Please sign in to comment.