Skip to content

Commit

Permalink
format: fix copy-paste mistake in Options.ModulePath
Browse files Browse the repository at this point in the history
I used LangVersion as a starting point, and I must have forgot to delete
some of the old lines when modifying in-place.

Thanks to Rob Findley for spotting this.
  • Loading branch information
mvdan committed Feb 23, 2022
1 parent de3450b commit 6952740
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ type Options struct {

// ModulePath corresponds to the Go module path which contains the source
// code being formatted. When inside a Go module, ModulePath should be:
// rules which require new language features. When inside a Go module,
// LangVersion should generally be specified as the result of:
//
// go mod edit -json | jq -r '.Module.Path'
//
Expand Down

0 comments on commit 6952740

Please sign in to comment.