修正代码中的若干拼写错误

This commit is contained in:
Tnze
2019-07-16 23:28:02 +08:00
parent ce9ce6c6f2
commit a7858a2459
8 changed files with 32 additions and 32 deletions

View File

@ -169,7 +169,7 @@ func (d *Decoder) unmarshal(val reflect.Value, tagType byte, tagName string) err
if err != nil {
return err
}
vt := val.Type() //reciver must be []int or []int32
vt := val.Type() //receiver must be []int or []int32
if vt.Kind() == reflect.Interface {
vt = reflect.TypeOf([]int32{}) // pass
} else if vt.Kind() != reflect.Slice {
@ -193,7 +193,7 @@ func (d *Decoder) unmarshal(val reflect.Value, tagType byte, tagName string) err
if err != nil {
return err
}
vt := val.Type() //reciver must be []int or []int64
vt := val.Type() //receiver must be []int or []int64
if vt.Kind() == reflect.Interface {
vt = reflect.TypeOf([]int64{}) // pass
} else if vt.Kind() != reflect.Slice {