summaryrefslogtreecommitdiff
path: root/internal/hex.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
commit0b57145421e7e4f165f64e73ee7c5d8102945569 (patch)
tree25584309e42bb53469959a3725393bdbc8b225c7 /internal/hex.go
parentffee5c8516f3f55f82ed5bb8f0a4f340d485fa92 (diff)
parent7e00adcf43b18a22ffbbadc79b8681a5d871f448 (diff)
Merge branch 'lukeshu/quality'
This branch works to improve code quality, without making any substantive changes.
Diffstat (limited to 'internal/hex.go')
-rw-r--r--internal/hex.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/hex.go b/internal/hex.go
index 9ef78eb..62a818f 100644
--- a/internal/hex.go
+++ b/internal/hex.go
@@ -6,7 +6,7 @@ package internal
const Hex = "0123456789abcdef"
-func HexToInt[T interface{ byte | rune }](c T) (byte, bool) {
+func HexToInt(c rune) (byte, bool) {
switch {
case '0' <= c && c <= '9':
return byte(c) - '0', true