From: Kir Kolyshkin Date: Tue, 18 Mar 2025 23:28:31 +0000 (-0700) Subject: os: fix typos in comments X-Git-Tag: go1.25rc1~655 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=af0d51c70fe18f860572767d6accdedb7f180358;p=gostls13.git os: fix typos in comments * peformed -> performed * reprots -> reports Found when reviewing Change-Id: I9474074199f6a610f40b4bcf798c6d77948f3d3c Reviewed-on: https://go-review.googlesource.com/c/go/+/658956 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- diff --git a/src/os/root.go b/src/os/root.go index 453ee1a5e5..fcb4600739 100644 --- a/src/os/root.go +++ b/src/os/root.go @@ -57,7 +57,7 @@ func OpenInRoot(dir, name string) (*File, error) { // such as NUL and COM1. // - On Unix, [Root.Chmod], [Root.Chown], and [Root.Chtimes] are vulnerable to a race condition. // If the target of the operation is changed from a regular file to a symlink -// while the operation is in progress, the operation may be peformed on the link +// while the operation is in progress, the operation may be performed on the link // rather than the link target. // - When GOOS=js, Root is vulnerable to TOCTOU (time-of-check-time-of-use) // attacks in symlink validation, and cannot ensure that operations will not @@ -342,7 +342,7 @@ func (rfs *rootFS) Stat(name string) (FileInfo, error) { return r.Stat(name) } -// isValidRootFSPath reprots whether name is a valid filename to pass a Root.FS method. +// isValidRootFSPath reports whether name is a valid filename to pass a Root.FS method. func isValidRootFSPath(name string) bool { if !fs.ValidPath(name) { return false