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 @@ -100,7 +100,7 @@ impl Drop for Handle {
100100/// Loads a file from a single file. Usage example: ...
101101/// ```
102102/// // A Nodejs path
103- /// metacall::load::from_single_file("node" , "index.js").unwrap();
103+ /// metacall::load::from_single_file(Tag::NodeJS , "index.js",None ).unwrap();
104104/// ```
105105pub fn from_single_file (
106106 tag : Tag ,
@@ -113,7 +113,7 @@ pub fn from_single_file(
113113/// Loads a path from file. Usage example: ...
114114/// ```
115115/// // A Nodejs script
116- /// metacall::load::from_file(Tag::NodeJS, ["index.js", "main.js"]).unwrap();
116+ /// metacall::load::from_file(Tag::NodeJS, ["index.js", "main.js"],None ).unwrap();
117117/// ```
118118pub fn from_file (
119119 tag : Tag ,
@@ -167,7 +167,7 @@ pub fn from_file(
167167/// let script = "function greet() { return 'hi there!' }; module.exports = { greet };";
168168///
169169/// // A Nodejs script
170- /// metacall::load::from_memory(Tag::NodeJS, script).unwrap();
170+ /// metacall::load::from_memory(Tag::NodeJS, script, None ).unwrap();
171171/// ```
172172pub fn from_memory (
173173 tag : Tag ,
You can’t perform that action at this time.
0 commit comments