File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -210,16 +210,16 @@ impl ResolveOptions {
210210 self
211211 }
212212
213- /// Adds a single extension to the list of extensions
213+ /// Adds a single extension to the list of extensions. Extension must start with a `.`
214214 ///
215215 /// ## Examples
216216 ///
217217 /// ```
218218 /// use oxc_resolver::ResolveOptions;
219219 /// use std::path::{Path, PathBuf};
220220 ///
221- /// let options = ResolveOptions::default().with_extension("jsonc");
222- /// assert!(options.extensions.contains(&"jsonc".to_string()));
221+ /// let options = ResolveOptions::default().with_extension(". jsonc");
222+ /// assert!(options.extensions.contains(&". jsonc".to_string()));
223223 /// ```
224224 #[ must_use]
225225 pub fn with_extension < S : Into < String > > ( mut self , extension : S ) -> Self {
You can’t perform that action at this time.
0 commit comments