diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2024-08-10 13:29:47 +0200 | 
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-10 13:29:47 +0200 | 
| commit | 3c0ff440385e4d156432ea64d2a78c6a6c452c58 (patch) | |
| tree | 6acc21ba07c213e037cf04d6de74485e3ae1d6bd /mintages/parser.go | |
| parent | be2e08dd2ec940dfffb1b088a8544d182ea02583 (diff) | |
Make use of iota
Diffstat (limited to 'mintages/parser.go')
| -rw-r--r-- | mintages/parser.go | 5 | 
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 { |