File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ func BenchmarkByteAtOld(b *testing.B) {
181
181
func TestReadBits (t * testing.T ) {
182
182
check := func (input string ) {
183
183
want , _ := hex .DecodeString (input )
184
- int , _ := new (big.Int ).SetString (input , 16 )
184
+ n , _ := new (big.Int ).SetString (input , 16 )
185
185
buf := make ([]byte , len (want ))
186
- ReadBits (int , buf )
186
+ ReadBits (n , buf )
187
187
if ! bytes .Equal (buf , want ) {
188
188
t .Errorf ("have: %x\n want: %x" , buf , want )
189
189
}
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ func (i *HexOrDecimal64) UnmarshalJSON(input []byte) error {
54
54
55
55
// UnmarshalText implements encoding.TextUnmarshaler.
56
56
func (i * HexOrDecimal64 ) UnmarshalText (input []byte ) error {
57
- int , ok := ParseUint64 (string (input ))
57
+ n , ok := ParseUint64 (string (input ))
58
58
if ! ok {
59
59
return fmt .Errorf ("invalid hex or decimal integer %q" , input )
60
60
}
61
- * i = HexOrDecimal64 (int )
61
+ * i = HexOrDecimal64 (n )
62
62
return nil
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments