[PATCH] Fix misleading comment typo
Export this patch
---
The comment for header_encode says it's for decoding.
caps/header.ha | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/caps/header.ha b/caps/header.ha
index f9d7957..0843cb3 100644
--- a/caps/header.ha
@@ -9,7 +9,7 @@ export type rights = enum u8 {
// A capability header, a bitfield of [[ctype]] and [[rights]].
export type header = u8;
-// Decodes a capability type and rights.
+// Encodes a capability type and rights.
export fn header_encode(ctype: ctype, rights: rights) header = {
static assert(ctype::LAST: uint << 2 < 0x100);
return (ctype << 2): u8 | (rights & 3): header;
--
2.43.0