From c43331a6e49c7fac5fcc5d61d6ff3d8d2221dbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 5 Feb 2021 21:02:04 +0100 Subject: code review --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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> { -- cgit v1.2.1