mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-25 02:46:53 +08:00
Remove unnecessary pointer dereference in 95-stack-heap/main_test.go
This commit is contained in:
parent
8e08283bee
commit
40507cc7ff
1 changed files with 1 additions and 1 deletions
|
|
@ -22,5 +22,5 @@ func BenchmarkSumPtr(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
local = sumPtr(i, i)
|
local = sumPtr(i, i)
|
||||||
}
|
}
|
||||||
globalValue = *local
|
globalPtr = local
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue