clarify that path() is for on-disk paths

This commit is contained in:
Ralf Jung
2024-12-17 07:37:46 +01:00
parent 6ace653a2f
commit 7dbfe4d4cf
+3 -1
View File
@@ -613,7 +613,9 @@ pub fn alias(mut self, alias: &str) -> Self {
self
}
// single, non-aliased path
/// single, non-aliased path
///
/// Must be an on-disk path; use `alias` for names that do not correspond to on-disk paths.
pub fn path(self, path: &str) -> Self {
self.paths(&[path])
}