Skip to content

Commit 29dc0cb

Browse files
committed
_64bit -> is64Bit in TestRepeatCatchesOverflow
1 parent 338bbfc commit 29dc0cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bytes/bytes_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,8 +1276,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
12761276
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
12771277
})
12781278

1279-
const _64bit = 1<<(^uintptr(0)>>63)/2 != 0
1280-
if !_64bit {
1279+
const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
1280+
if !is64Bit {
12811281
return
12821282
}
12831283

src/strings/strings_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
12041204
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
12051205
})
12061206

1207-
const _64bit = 1<<(^uintptr(0)>>63)/2 != 0
1208-
if !_64bit {
1207+
const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
1208+
if !is64Bit {
12091209
return
12101210
}
12111211

0 commit comments

Comments
 (0)