From eb9ac980ca90d28bcd7be5859b8fb4f939909cbb Mon Sep 17 00:00:00 2001 From: AilinKid <314806019@qq.com> Date: Wed, 11 Sep 2019 10:34:23 +0800 Subject: [PATCH] fix autoid_test comment --- meta/autoid/autoid_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/autoid/autoid_test.go b/meta/autoid/autoid_test.go index 5baf51ce8854a..af54be278a337 100644 --- a/meta/autoid/autoid_test.go +++ b/meta/autoid/autoid_test.go @@ -135,7 +135,7 @@ func (*testSuite) TestT(c *C) { c.Assert(err, IsNil) c.Assert(id, Equals, int64(6544)) - // Test the MaxInt64 is alloc upper bound but not rebase. + // Test the MaxInt64 is the upper bound of `alloc` function but not `rebase`. err = alloc.Rebase(3, int64(9223372036854775806), true) c.Assert(err, IsNil) _, err = alloc.Alloc(3) @@ -239,7 +239,7 @@ func (*testSuite) TestUnsignedAutoid(c *C) { c.Assert(err, IsNil) c.Assert(id, Equals, int64(6544)) - // Test the MaxUint64 is alloc upper bound but not rebase. + // Test the MaxUint64 is the upper bound of `alloc` func but not `rebase`. var n uint64 = math.MaxUint64 - 1 un := int64(n) err = alloc.Rebase(3, un, true)