Didn't feel like the hassle of using "fn main() {}" in every eval session.

This commit is contained in:
toast 2023-12-06 22:13:50 +11:00
parent b15f3aad6b
commit 6955049dc0

View File

@ -26,7 +26,7 @@ pub async fn eval(
{
let mut file = std::fs::File::create(&file_path)?;
writeln!(file, "{}", code)?;
writeln!(file, "fn main() {{ {} }}", code)?;
}
// Compile