Skip to content

Commit b10d77e

Browse files
committed
docs: document specifier and path for resolve
1 parent 6b0061a commit b10d77e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ impl<Fs: FileSystem + Default> ResolverGeneric<Fs> {
124124
self.cache.clear();
125125
}
126126

127-
/// Resolve `specifier` at absolute `path`
127+
/// Resolve `specifier` at an absolute `path`
128+
///
129+
/// A specifier is the string passed to require or import, i.e. `require("specifier")` or `import "specifier"`.
130+
///
131+
/// The path must be an **absolute** path where the specifier is resolved from.
128132
///
129133
/// # Errors
130134
///

0 commit comments

Comments
 (0)