From b19e71b2252ef43424ebb0348b9ebf89b0aec473 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 20 Oct 2023 22:53:20 +0200 Subject: [PATCH] Fix comment typo --- src/windows/disk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/disk.rs b/src/windows/disk.rs index 16db77053..641fc2db1 100644 --- a/src/windows/disk.rs +++ b/src/windows/disk.rs @@ -99,7 +99,7 @@ pub(crate) unsafe fn get_volume_path_names_for_volume_name( .map_err(|_| match GetLastError() { Ok(_) => { sysinfo_debug!("GetLastError should return an error after GetVolumePathNamesForVolumeNameW returned zero."); - // We return an error in any case that is not `ERROR_MORE_DATA`. + // We return an error in any case that is not `ERROR_MORE_DATA` to stop the loop. ERROR_UNRECOGNIZED_VOLUME.to_hresult() } Err(e) => e.code(),