summaryrefslogtreecommitdiffhomepage
path: root/mintages
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-10 13:29:47 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-10 13:29:47 +0200
commit3c0ff440385e4d156432ea64d2a78c6a6c452c58 (patch)
tree6acc21ba07c213e037cf04d6de74485e3ae1d6bd /mintages
parentbe2e08dd2ec940dfffb1b088a8544d182ea02583 (diff)
Make use of iota
Diffstat (limited to 'mintages')
-rw-r--r--mintages/parser.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/mintages/parser.go b/mintages/parser.go
index 7b782b3..9f0c66f 100644
--- a/mintages/parser.go
+++ b/mintages/parser.go
@@ -10,8 +10,9 @@ import (
)
const (
- Unknown = -1 // Unknown mintage
- Invalid = -2 // All mintages <= than this are invalid
+ _ = -iota
+ Unknown // Unknown mintage
+ Invalid // All mintages <= than this are invalid
)
type SyntaxError struct {