File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func ExampleGet() {
95
95
// Crimson
96
96
}
97
97
98
- func ExampleMapKey () {
98
+ func ExampleMyKey () {
99
99
hello := MyKey ("hello" )
100
100
output , _ := Marshal (map [* MyKey ]string {& hello : "world" })
101
101
fmt .Println (string (output ))
Original file line number Diff line number Diff line change @@ -77,14 +77,12 @@ func (iter *Iterator) ReadFloat32() (ret float32) {
77
77
}
78
78
79
79
func (iter * Iterator ) readPositiveFloat32 () (ret float32 ) {
80
- value := uint64 (0 )
81
- c := byte (' ' )
82
80
i := iter .head
83
81
// first char
84
82
if i == iter .tail {
85
83
return iter .readFloat32SlowPath ()
86
84
}
87
- c = iter .buf [i ]
85
+ c : = iter .buf [i ]
88
86
i ++
89
87
ind := floatDigits [c ]
90
88
switch ind {
@@ -107,7 +105,7 @@ func (iter *Iterator) readPositiveFloat32() (ret float32) {
107
105
return
108
106
}
109
107
}
110
- value = uint64 (ind )
108
+ value : = uint64 (ind )
111
109
// chars before dot
112
110
non_decimal_loop:
113
111
for ; i < iter .tail ; i ++ {
@@ -216,14 +214,12 @@ func (iter *Iterator) ReadFloat64() (ret float64) {
216
214
}
217
215
218
216
func (iter * Iterator ) readPositiveFloat64 () (ret float64 ) {
219
- value := uint64 (0 )
220
- c := byte (' ' )
221
217
i := iter .head
222
218
// first char
223
219
if i == iter .tail {
224
220
return iter .readFloat64SlowPath ()
225
221
}
226
- c = iter .buf [i ]
222
+ c : = iter .buf [i ]
227
223
i ++
228
224
ind := floatDigits [c ]
229
225
switch ind {
@@ -246,7 +242,7 @@ func (iter *Iterator) readPositiveFloat64() (ret float64) {
246
242
return
247
243
}
248
244
}
249
- value = uint64 (ind )
245
+ value : = uint64 (ind )
250
246
// chars before dot
251
247
non_decimal_loop:
252
248
for ; i < iter .tail ; i ++ {
You can’t perform that action at this time.
0 commit comments