From 988b7e46928e81697c150b0401cb7067deb8cd9d Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 1 Sep 2023 11:07:28 -0500 Subject: [PATCH] Add a comment --- core/src/cache.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/cache.rs b/core/src/cache.rs index 88459addb3..bea2ca308c 100644 --- a/core/src/cache.rs +++ b/core/src/cache.rs @@ -238,6 +238,9 @@ pub enum SourcePath { /// /// Note that this does not need to be a real file on the filesystem: it could still /// be loaded from memory by, e.g, [`Cache::add_string`]. + /// + /// This is the only `SourcePath` variant that can be resolved as the target + /// of an import statement. Path(PathBuf), /// A subrange of a file at the given path. ///