Skip to content

Commit ede2237

Browse files
committed
fix: typos
1 parent ac4d2c5 commit ede2237

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
9595
func 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")

0 commit comments

Comments
 (0)