chore(parser/elf): better binders capitalization
All checks were successful
submodules sync / sync (push) Successful in 1m9s
build / build (push) Successful in 3m22s
build / trigger-build-image (push) Successful in 13s

This commit is contained in:
张泊明518370910136 2025-06-18 02:59:59 -04:00
parent 698a6193cc
commit f04a471969
GPG Key ID: D47306D7062CDA9D

View File

@ -41,7 +41,7 @@ type Binder struct {
}
func (b Binder) String() string {
return fmt.Sprintf("In the definition of %s (at %s)", b.Binder, b.Pos)
return fmt.Sprintf("in the definition of %s (at %s)", b.Binder, b.Pos)
}
type Binders []Binder
@ -51,7 +51,12 @@ func (bs Binders) String() string {
for _, b := range bs {
s = append(s, b.String())
}
return strings.Join(s, "; ")
combinedStr := strings.Join(s, "; ")
if len(combinedStr) > 0 && combinedStr[0] == 'i' {
return "I" + combinedStr[1:]
}
return combinedStr
}
type Source struct {