From e7d7f63158decb7c3a1ea9fcf5337230d03e7272 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Tue, 31 Jan 2023 11:24:12 +0800 Subject: [PATCH] all: fix some comments Change-Id: I7d5bfd4caac63820b26fc3408118c13e74e6448c Reviewed-on: https://go-review.googlesource.com/c/sys/+/464238 Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Tobias Klauser Reviewed-by: Ian Lance Taylor Run-TryBot: Tobias Klauser Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot --- plan9/mksyscall.go | 2 +- unix/syscall_unix.go | 2 +- unix/timestruct.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plan9/mksyscall.go b/plan9/mksyscall.go index a5062c26..d7a481fb 100644 --- a/plan9/mksyscall.go +++ b/plan9/mksyscall.go @@ -55,7 +55,7 @@ func goBuildTags() string { return strings.ReplaceAll(*tags, ",", " && ") } -// plusBuildTags returns build tags in the +build format. +// buildTags returns build tags in the +build format. func buildTags() string { return *tags } diff --git a/unix/syscall_unix.go b/unix/syscall_unix.go index a386f889..00f0aa37 100644 --- a/unix/syscall_unix.go +++ b/unix/syscall_unix.go @@ -578,7 +578,7 @@ func Lutimes(path string, tv []Timeval) error { return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW) } -// emptyIovec reports whether there are no bytes in the slice of Iovec. +// emptyIovecs reports whether there are no bytes in the slice of Iovec. func emptyIovecs(iov []Iovec) bool { for i := range iov { if iov[i].Len > 0 { diff --git a/unix/timestruct.go b/unix/timestruct.go index 3d893040..616b1b28 100644 --- a/unix/timestruct.go +++ b/unix/timestruct.go @@ -9,7 +9,7 @@ package unix import "time" -// TimespecToNSec returns the time stored in ts as nanoseconds. +// TimespecToNsec returns the time stored in ts as nanoseconds. func TimespecToNsec(ts Timespec) int64 { return ts.Nano() } // NsecToTimespec converts a number of nanoseconds into a Timespec.