aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-05 21:02:04 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-05 21:02:04 +0100
commitc43331a6e49c7fac5fcc5d61d6ff3d8d2221dbe0 (patch)
treecf6b191266c8ba455ac7c95fc600ad51ebcf1855 /src/lib.rs
parent826eb43254ddf8baadcd2ec1dacce594690526db (diff)
downloadsylt-c43331a6e49c7fac5fcc5d61d6ff3d8d2221dbe0.tar.gz
code review
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index baaa846..bdafa03 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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>> {