diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-30 20:07:22 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-30 20:07:22 +0200 |
commit | bf20fa37e41a2a7785955eccdd25dabc3af3c961 (patch) | |
tree | 9bc7a1841a52aa66985b059be7afc97cd3844abf /bytesconv_timing_test.go | |
parent | Added a benchmark for int2hexbyte (diff) | |
download | fasthttp-bf20fa37e41a2a7785955eccdd25dabc3af3c961.tar.gz fasthttp-bf20fa37e41a2a7785955eccdd25dabc3af3c961.tar.bz2 fasthttp-bf20fa37e41a2a7785955eccdd25dabc3af3c961.zip |
Fixed a typo
Diffstat (limited to 'bytesconv_timing_test.go')
-rw-r--r-- | bytesconv_timing_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bytesconv_timing_test.go b/bytesconv_timing_test.go index 2097997..cb315ae 100644 --- a/bytesconv_timing_test.go +++ b/bytesconv_timing_test.go @@ -11,9 +11,9 @@ func BenchmarkInt2HexByte(b *testing.B) { var i int for pb.Next() { i = 16 - for i >= 0 { - int2hexbyte(i) + for i > 0 { i-- + int2hexbyte(i) } } }) |