~sircmpwn/helios-devel

Fix misleading comment typo v1 PROPOSED

Alexander Carey: 1
 Fix misleading comment typo

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/helios-devel/patches/48703/mbox | git am -3
Learn more about email & git

[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
+++ b/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