Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Small edits
Lorenz Leutgeb committed 3 months ago
commit e33379330aea056ff6eea61ddc6b6f15cbf4bd7e
parent 107c788ceff6cb887aa15a3304d6b26bc0ce0efa
1 file changed +5 -5
modified crates/radicle-node/src/runtime/socket/unix.rs
@@ -19,8 +19,8 @@ pub const MAX_PATH_LEN: usize = 108;
))]
pub const MAX_PATH_LEN: usize = 104;

-
// Fallback for other Unix-like systems, use conservative that matches BSD
-
// family.
+
// Fallback for other Unix-like systems, use conservative value
+
// that matches BSD family.
#[cfg(all(
    unix,
    not(any(
@@ -39,9 +39,9 @@ pub const MAX_PATH_LEN: usize = 104;
/// A validated Unix domain socket path.
///
/// This type guarantees that the contained path:
-
/// - Does not exceed the platform's `sun_path` limit
-
/// - Does not contain embedded null bytes
-
/// - Is not empty
+
/// - Does have a length that fits the platform's `sun_path` size.
+
/// - Does not contain embedded null bytes.
+
/// - Is not empty.
///
/// # Example
///