diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 21:02:04 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 21:02:04 +0100 |
| commit | c43331a6e49c7fac5fcc5d61d6ff3d8d2221dbe0 (patch) | |
| tree | cf6b191266c8ba455ac7c95fc600ad51ebcf1855 | |
| parent | 826eb43254ddf8baadcd2ec1dacce594690526db (diff) | |
| download | sylt-c43331a6e49c7fac5fcc5d61d6ff3d8d2221dbe0.tar.gz | |
code review
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ mod compiler; mod tokenizer; /// Compiles a file and links the supplied functions as callable external -/// functions. Use this is you want your programs to be able to yield. +/// functions. Use this if you want your programs to be able to yield. pub fn compile_file(path: &Path, print: bool, functions: Vec<(String, RustFunction)> @@ -38,7 +38,7 @@ pub fn compile_file(path: &Path, } } -/// Compiles and runs a file and links the supplied functions as callable +/// Compiles, links and runs the given file. Supplied functions are callable /// external functions. If you want your program to be able to yield, use /// [compile_file]. pub fn run_file(path: &Path, print: bool, functions: Vec<(String, RustFunction)>) -> Result<(), Vec<Error>> { |
