Skip to content

Commit 4ed9943

Browse files
prattmicgopherbot
authored andcommitted
all: go fmt
Change-Id: I6a6a636c341d4ba3518be7f6806093bbdff11c88 Reviewed-on: https://go-review.googlesource.com/c/go/+/689535 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
1 parent 1aaf742 commit 4ed9943

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

src/internal/cgrouptest/cgrouptest_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func findCurrent(t *testing.T) (string, string) {
114114
if ver != cgroup.V2 {
115115
t.Skipf("cgroup: running on cgroup v%d want v2", ver)
116116
}
117-
rel := string(buf[1:n]) // The returned path always starts with /, skip it.
117+
rel := string(buf[1:n]) // The returned path always starts with /, skip it.
118118
rel = filepath.Join(".", rel) // Make sure this isn't empty string at root.
119119
return mount, rel
120120
}

src/internal/runtime/strconv/atoi.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ func Atoi32(s string) (int32, bool) {
7373
}
7474
return 0, false
7575
}
76-

src/internal/runtime/strconv/atoi_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,3 @@ func TestAtoi32(t *testing.T) {
102102
}
103103
}
104104
}
105-

src/runtime/debug.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import (
1919
// GOMAXPROCS defaults to that value.
2020
//
2121
// Otherwise, the Go runtime selects an appropriate default value from a combination of
22-
// - the number of logical CPUs on the machine,
23-
// - the process’s CPU affinity mask,
24-
// - and, on Linux, the process’s average CPU throughput limit based on cgroup CPU
25-
// quota, if any.
22+
// - the number of logical CPUs on the machine,
23+
// - the process’s CPU affinity mask,
24+
// - and, on Linux, the process’s average CPU throughput limit based on cgroup CPU
25+
// quota, if any.
2626
//
2727
// If GODEBUG=containermaxprocs=0 is set and GOMAXPROCS is not set by the
2828
// environment variable, then GOMAXPROCS instead defaults to the value of

src/unicode/utf8/utf8.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func DecodeLastRune(p []byte) (r rune, size int) {
263263
// guard against O(n^2) behavior when traversing
264264
// backwards through strings with long sequences of
265265
// invalid UTF-8.
266-
lim := max(end - UTFMax, 0)
266+
lim := max(end-UTFMax, 0)
267267
for start--; start >= lim; start-- {
268268
if RuneStart(p[start]) {
269269
break
@@ -300,7 +300,7 @@ func DecodeLastRuneInString(s string) (r rune, size int) {
300300
// guard against O(n^2) behavior when traversing
301301
// backwards through strings with long sequences of
302302
// invalid UTF-8.
303-
lim := max(end - UTFMax, 0)
303+
lim := max(end-UTFMax, 0)
304304
for start--; start >= lim; start-- {
305305
if RuneStart(s[start]) {
306306
break

0 commit comments

Comments
 (0)