Refer to "node" rather than "file" in node mode docstrings

This commit is contained in:
Yousef Moazzam
2025-05-24 21:56:30 +01:00
parent 13642ab159
commit 3d06dd39ba
+4 -4
View File
@@ -90,8 +90,8 @@ type BlockListL4 = BlockList<BlockListL3>;
pub struct Node {
/// This node's type & permissions.
/// - four most significant bits are the node's type
/// - next four bits are permissions for the file's user
/// - next four bits are permissions for the file's group
/// - 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<u16>,
@@ -224,8 +224,8 @@ impl Node {
/// This node's type & permissions.
/// - four most significant bits are the node's type
/// - next four bits are permissions for the file's user
/// - next four bits are permissions for the file's group
/// - 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()