mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Simplify token.builtInsByID
This commit is contained in:
1 parent
e2716e4365
commit
c9161bafaf
2 files changed
+142
-146
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ func (m *Map) ByName(name string) ID {
|
||||
|
||||
func (m *Map) ByID(x ID) string {
|
||||
if x < nBuiltInIDs {
|
||||
return builtInsByID[x].name
|
||||
return builtInsByID[x]
|
||||
}
|
||||
x -= nBuiltInIDs
|
||||
if uint(x) < uint(len(m.byID)) {
|
||||
|
||||
Reference in new issue
Block a user