Skip to content

Commit

Permalink
cl,typesutil: fix Config doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Nov 8, 2023
1 parent d33c553 commit c650d72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ type Config struct {
Types *types.Package

// Fset provides source position information for syntax trees and types (required).
// If Fset is nil, Load will use a new fileset, but preserve Fset's value.
Fset *token.FileSet

// WorkingDir is the directory in which to run gop compiler (optional).
Expand Down
3 changes: 1 addition & 2 deletions x/typesutil/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ func SetDebug(flags dbgFlags) {
type Project = cl.Project

type Config struct {
// Types provides type information for the package (optional).
// Types provides type information for the package (required).
Types *types.Package

// Fset provides source position information for syntax trees and types (required).
// If Fset is nil, Load will use a new fileset, but preserve Fset's value.
Fset *token.FileSet

// WorkingDir is the directory in which to run gop compiler (optional).
Expand Down

0 comments on commit c650d72

Please sign in to comment.