This commit is contained in:
Jes Cok 2024-01-30 23:12:28 +08:00
parent 066c4224ed
commit 9cc550f3db
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ const (
SSUBTYP_DWLINE = 0x20000 // DWARF line-number section
SSUBTYP_DWPBNMS = 0x30000 // DWARF public names section
SSUBTYP_DWPBTYP = 0x40000 // DWARF public types section
SSUBTYP_DWARNGE = 0x50000 // DWARF arranges section
SSUBTYP_DWARNGE = 0x50000 // DWARF aranges section
SSUBTYP_DWABREV = 0x60000 // DWARF abbreviation section
SSUBTYP_DWSTR = 0x70000 // DWARF strings section
SSUBTYP_DWRNGES = 0x80000 // DWARF ranges section

View File

@ -718,7 +718,7 @@ func (dec *Decoder) decodeInterface(ityp reflect.Type, state *decoderState, valu
error_(dec.err)
}
// Assign the concrete value to the interface.
// Treat carefully; it might not satisfy the interface.
// Tread carefully; it might not satisfy the interface.
if !typ.AssignableTo(ityp) {
errorf("%s is not assignable to type %s", typ, ityp)
}