1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:31:21 -06:00
go/src/container
Jason Wangsadinata 26e49e695f container/ring: fix example_test.go
The Len method is a linear operation. CL 73090 used Len to iterate over
a ring, resulting in a quadratic time operation.

Change-Id: Ib69c19190ba648311e6c345d8cb26292b50121ee
Reviewed-on: https://go-review.googlesource.com/74390
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-10-31 03:52:55 +00:00
..
heap container/heap: call t.Helper() in verify() 2017-09-13 17:22:00 +00:00
list container/list: silence vet warnings 2016-08-16 14:35:37 +00:00
ring container/ring: fix example_test.go 2017-10-31 03:52:55 +00:00