all: gofmt -w

Change-Id: Ie30a780cbd98bab1e80035b3dfddf92eb281759e
GitHub-Last-Rev: 369ada24ff
GitHub-Pull-Request: golang/go#71898
Reviewed-on: https://go-review.googlesource.com/c/go/+/651795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Jes Cok 2025-02-22 12:37:00 +00:00 committed by Gopher Robot
parent 97571f3610
commit 77ce76d761
3 changed files with 13 additions and 13 deletions

View File

@ -802,7 +802,7 @@ func os_checkClonePidfd() error {
for {
const _P_PIDFD = 3
_, _, errno = Syscall6(SYS_WAITID, _P_PIDFD, uintptr(pidfd), 0, WEXITED | WCLONE, 0, 0)
_, _, errno = Syscall6(SYS_WAITID, _P_PIDFD, uintptr(pidfd), 0, WEXITED|WCLONE, 0, 0)
if errno != EINTR {
break
}

View File

@ -1508,7 +1508,7 @@ func TestBadFuncNames(t *testing.T) {
func TestIsTrue(t *testing.T) {
var nil_ptr *int
var nil_chan chan int
tests := []struct{
tests := []struct {
v any
want bool
}{
@ -1522,12 +1522,12 @@ func TestIsTrue(t *testing.T) {
{complex64(0.0), false},
{true, true},
{false, false},
{[2]int{1,2}, true},
{[2]int{1, 2}, true},
{[0]int{}, false},
{[]byte("abc"), true},
{[]byte(""), false},
{map[string] int {"a": 1, "b": 2}, true},
{map[string] int {}, false},
{map[string]int{"a": 1, "b": 2}, true},
{map[string]int{}, false},
{make(chan int), true},
{nil_chan, false},
{new(int), true},