aboutsummaryrefslogtreecommitdiff
path: root/copyright/copyright.go
diff options
context:
space:
mode:
Diffstat (limited to 'copyright/copyright.go')
-rw-r--r--copyright/copyright.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/copyright/copyright.go b/copyright/copyright.go
index 4a04d132a..db63c5992 100644
--- a/copyright/copyright.go
+++ b/copyright/copyright.go
@@ -94,8 +94,9 @@ func checkFile(toolsDir, filename string) (bool, error) {
return shouldAddCopyright, nil
}
-// Copied from golang.org/x/tools/internal/lsp/source/util.go.
+// Copied from golang.org/x/tools/gopls/internal/lsp/source/util.go.
// Matches cgo generated comment as well as the proposed standard:
+//
// https://golang.org/s/generatedcode
var generatedRx = regexp.MustCompile(`// .*DO NOT EDIT\.?`)