[fix] typo (#1655)

master
ronething-bot 3 years ago committed by GitHub
parent c11a09be23
commit 18916b5189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -648,19 +648,19 @@ func (s *TypeStruct) Equal(dt interface{}) bool {
return false
}
var expected, acual []*TypeField
var expected, actual []*TypeField
expected = append(expected, s.Fields...)
acual = append(acual, v.Fields...)
actual = append(actual, v.Fields...)
sort.Slice(expected, func(i, j int) bool {
return expected[i].DataType.Expr().Line() < expected[j].DataType.Expr().Line()
})
sort.Slice(acual, func(i, j int) bool {
return acual[i].DataType.Expr().Line() < acual[j].DataType.Expr().Line()
sort.Slice(actual, func(i, j int) bool {
return actual[i].DataType.Expr().Line() < actual[j].DataType.Expr().Line()
})
for index, each := range expected {
ac := acual[index]
ac := actual[index]
if !each.Equal(ac) {
return false
}

Loading…
Cancel
Save