]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix typos in comments
authorKir Kolyshkin <kolyshkin@gmail.com>
Tue, 18 Mar 2025 23:28:31 +0000 (16:28 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 20 Mar 2025 15:11:21 +0000 (08:11 -0700)
 * peformed -> performed
 * reprots -> reports

Found when reviewing

Change-Id: I9474074199f6a610f40b4bcf798c6d77948f3d3c
Reviewed-on: https://go-review.googlesource.com/c/go/+/658956
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/os/root.go

index 453ee1a5e52c694a68ad896a97c035e65703b1af..fcb460073926473fa17ea906f4351509e9b3c000 100644 (file)
@@ -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