Remove unnecessary pointer dereference in 95-stack-heap/main_test.go

This commit is contained in:
obaibula 2024-12-15 17:51:52 +02:00
parent 8e08283bee
commit 40507cc7ff

View file

@ -22,5 +22,5 @@ func BenchmarkSumPtr(b *testing.B) {
for i := 0; i < b.N; i++ {
local = sumPtr(i, i)
}
globalValue = *local
globalPtr = local
}