File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ use std::{
1616/// ```
1717pub fn from_single_file (
1818 tag : impl ToString ,
19- script : impl AsRef < Path > ,
19+ path : impl AsRef < Path > ,
2020) -> Result < ( ) , MetaCallLoaderError > {
21- from_file ( tag, [ script ] )
21+ from_file ( tag, [ path ] )
2222}
2323/// Loads a script from file. Usage example: ...
2424/// ```
@@ -27,14 +27,14 @@ pub fn from_single_file(
2727/// ```
2828pub fn from_file (
2929 tag : impl ToString ,
30- scripts : impl IntoIterator < Item = impl AsRef < Path > > ,
30+ paths : impl IntoIterator < Item = impl AsRef < Path > > ,
3131) -> Result < ( ) , MetaCallLoaderError > {
3232 let c_tag = cstring_enum ! ( tag, MetaCallLoaderError ) ?;
3333 let mut c_script: CString ;
3434
3535 let mut new_scripts: Vec < * const i8 > = Vec :: new ( ) ;
36- for script in scripts . into_iter ( ) {
37- let script_as_pathbuf = PathBuf :: from ( script . as_ref ( ) ) ;
36+ for path in paths . into_iter ( ) {
37+ let script_as_pathbuf = PathBuf :: from ( path . as_ref ( ) ) ;
3838 let script_as_str = script_as_pathbuf. to_str ( ) . unwrap ( ) ;
3939
4040 if !script_as_pathbuf. exists ( ) {
You can’t perform that action at this time.
0 commit comments