diff --git a/src/node.rs b/src/node.rs index b2566a37e4..b2c2426497 100644 --- a/src/node.rs +++ b/src/node.rs @@ -89,10 +89,10 @@ type BlockListL4 = BlockList; #[repr(C, packed)] pub struct Node { /// This node's type & permissions. - /// - first four bits are permissions - /// - next four bits are permissions for the file's user - /// - next four bits are permissions for the file's group - /// - last four bits are permissions for everyone else + /// - four most significant bits are the node's type + /// - next four bits are permissions for the node's user + /// - next four bits are permissions for the node's group + /// - four least significant bits are permissions for everyone else pub mode: Le, /// The uid that owns this file @@ -223,10 +223,10 @@ impl Node { } /// This node's type & permissions. - /// - first four bits are permissions - /// - next four bits are permissions for the file's user - /// - next four bits are permissions for the file's group - /// - last four bits are permissions for everyone else + /// - four most significant bits are the node's type + /// - next four bits are permissions for the node's user + /// - next four bits are permissions for the node's group + /// - four least significant bits are permissions for everyone else pub fn mode(&self) -> u16 { self.mode.to_ne() }