summaryrefslogtreecommitdiff
path: root/lib/btrfs/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-11 22:15:41 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 16:17:27 -0700
commit28549f676e040c96bfae575535dea7e0ecdf0f41 (patch)
treefdfadc8fc24ee4ae4c5bef7dbf03431c19abcad9 /lib/btrfs/Makefile
parentcfcc753dc8906817e15b1b7c36b4dc12462d12e4 (diff)
Change how constants are declared to play nice with godoc
Switch to NAME Type = val instead of NAME = Type(val)
Diffstat (limited to 'lib/btrfs/Makefile')
-rw-r--r--lib/btrfs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/btrfs/Makefile b/lib/btrfs/Makefile
index a1fe747..015c3e1 100644
--- a/lib/btrfs/Makefile
+++ b/lib/btrfs/Makefile
@@ -77,7 +77,7 @@ btrfsprim/itemtype.go: btrfsitem/items.txt $(MAKEFILE_LIST)
echo 'import "fmt"'; \
echo 'type ItemType uint8'; \
echo 'const ('; \
- sed -E 's,(.*)=([^:]*)(:.*)? (trivial|complex) (.*),\1_KEY=ItemType(\2),' $< | uniq; \
+ sed -E 's,(.*)=([^:]*)(:.*)? (trivial|complex) (.*),\1_KEY ItemType=\2,' $< | uniq; \
echo ')'; \
echo 'func (t ItemType) String() string {'; \
echo ' names := map[ItemType]string{'; \