mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 06:46:44 -04:00
all: fix some comments
Change-Id: I7d5bfd4caac63820b26fc3408118c13e74e6448c Reviewed-on: https://go-review.googlesource.com/c/sys/+/464238 Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ func goBuildTags() string {
|
|||||||
return strings.ReplaceAll(*tags, ",", " && ")
|
return strings.ReplaceAll(*tags, ",", " && ")
|
||||||
}
|
}
|
||||||
|
|
||||||
// plusBuildTags returns build tags in the +build format.
|
// buildTags returns build tags in the +build format.
|
||||||
func buildTags() string {
|
func buildTags() string {
|
||||||
return *tags
|
return *tags
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ func Lutimes(path string, tv []Timeval) error {
|
|||||||
return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
|
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 {
|
func emptyIovecs(iov []Iovec) bool {
|
||||||
for i := range iov {
|
for i := range iov {
|
||||||
if iov[i].Len > 0 {
|
if iov[i].Len > 0 {
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ package unix
|
|||||||
|
|
||||||
import "time"
|
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() }
|
func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
|
||||||
|
|
||||||
// NsecToTimespec converts a number of nanoseconds into a Timespec.
|
// NsecToTimespec converts a number of nanoseconds into a Timespec.
|
||||||
|
|||||||
Reference in New Issue
Block a user