aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-10 14:36:02 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-10 14:36:02 +0300
commitc121f20620499e9b7c497c82c7321474cbf59e1d (patch)
tree617c20d31cb577b459a423074d97a6e1b91e2a0c /src/main.rs
parent09f39aebe68213799fdd7a33665a162c40baf299 (diff)
downloadmyslip-c121f20620499e9b7c497c82c7321474cbf59e1d.tar.gz
myslip-c121f20620499e9b7c497c82c7321474cbf59e1d.zip
Implemented aka. Changed Nil:st type to NilType from an empty list.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0c71fbe..b507cbd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,7 +46,7 @@ fn repl() -> Result<(), io::Error> {
};
match &expression {
- SCons(l, r) if **l == Atom(Let) => match scons(expression.clone(), Nil).type_check() {
+ SCons(l, _) if **l == Atom(Let) => match scons(expression.clone(), Nil).type_check() {
Ok(_) => {
binds.push(expression);
println!("Bind saved");