From fe593efa8c64d20f6836bd357987722c3ea596d0 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Mon, 27 Oct 2025 23:15:14 -0400 Subject: [PATCH] chore(autoconfigure/docs): clarify why we append / to a device root --- src/autoconfigure/bls.rs | 2 +- src/autoconfigure/linux.rs | 2 +- src/autoconfigure/windows.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autoconfigure/bls.rs b/src/autoconfigure/bls.rs index 3ecb7e2..5aa57b2 100644 --- a/src/autoconfigure/bls.rs +++ b/src/autoconfigure/bls.rs @@ -31,7 +31,7 @@ pub fn scan( .to_string(DisplayOnly(false), AllowShortcuts(false)) .context("unable to convert device root to string")? .to_string(); - // Add a trailing slash to the root to ensure the path is valid. + // Add a trailing forward-slash to the root to ensure the device root is completed. root.push('/'); // Generate a unique hash of the root path. diff --git a/src/autoconfigure/linux.rs b/src/autoconfigure/linux.rs index 4dbf6be..b150578 100644 --- a/src/autoconfigure/linux.rs +++ b/src/autoconfigure/linux.rs @@ -135,7 +135,7 @@ pub fn scan( .to_string(DisplayOnly(false), AllowShortcuts(false)) .context("unable to convert device root to string")? .to_string(); - // Add a trailing slash to the root to ensure the path is valid. + // Add a trailing forward-slash to the root to ensure the device root is completed. root.push('/'); // Generate a unique hash of the root path. diff --git a/src/autoconfigure/windows.rs b/src/autoconfigure/windows.rs index a1651b2..b930b5c 100644 --- a/src/autoconfigure/windows.rs +++ b/src/autoconfigure/windows.rs @@ -39,7 +39,7 @@ pub fn scan( .to_string(DisplayOnly(false), AllowShortcuts(false)) .context("unable to convert device root to string")? .to_string(); - // Add a trailing slash to the root to ensure the path is valid. + // Add a trailing forward-slash to the root to ensure the device root is completed. root.push('/'); // Generate a unique hash of the root path.