File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ func detectGoVersion() string {
8989}
9090
9191// detectGoVersionFromGoMod tries to get Go version from go.mod.
92- // It returns toolchain version if present,
93- // else it returns go version if present,
92+ // It returns ` toolchain` version if present,
93+ // else it returns `go` version if present,
9494// else it returns empty.
9595func detectGoVersionFromGoMod () string {
9696 file , _ := gomoddirectives .GetModuleFile ()
9797 if file == nil {
9898 return ""
9999 }
100100
101- // The toolchain exist only if 'toolchain' version > 'go' version.
101+ // The toolchain exists only if 'toolchain' version > 'go' version.
102102 // If 'toolchain' version <= 'go' version, `go mod tidy` will remove 'toolchain' version from go.mod.
103103 if file .Toolchain != nil && file .Toolchain .Name != "" {
104104 return strings .TrimPrefix (file .Toolchain .Name , "go" )
You can’t perform that action at this time.
0 commit comments