cmd/link: fix typo in comment

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guoguangwu 2024-03-08 10:54:28 +08:00
parent 69583738eb
commit b0c6c58b24
1 changed files with 3 additions and 3 deletions

View File

@ -1198,8 +1198,8 @@ func main() {}
}
exe := filepath.Join(tmpdir, "x.exe")
// Use a deterministc tmp directory so the temporary file paths are
// deterministc.
// Use a deterministic tmp directory so the temporary file paths are
// deterministic.
linktmp := filepath.Join(tmpdir, "linktmp")
if err := os.Mkdir(linktmp, 0777); err != nil {
t.Fatal(err)
@ -1219,7 +1219,7 @@ func main() {}
t.Fatal(err)
}
// extract the "host link" invocaton
// extract the "host link" invocation
j := bytes.Index(out, []byte("\nhost link:"))
if j == -1 {
t.Fatalf("host link step not found, output:\n%s", out)