Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
rscarson committed Nov 12, 2024
1 parent a0f17bd commit c2d3406
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ pub fn import(path: &str) -> Result<ModuleWrapper, Error> {
/// # Example
///
/// ```rust
/// let full_path = rustyscript::resolve_path("test.js", None).expect("Something went wrong!");
/// assert!(full_path.ends_with("test.js"));
/// rustyscript::resolve_path("test.js", None).expect("Something went wrong!");
/// ```
pub fn resolve_path(
path: impl AsRef<std::path::Path>,
Expand Down

0 comments on commit c2d3406

Please sign in to comment.