From db9bbf14d5faeeae4f9efd63627343bea50ac0b0 Mon Sep 17 00:00:00 2001 From: "Julyanna Francesca C. Huang" Date: Thu, 30 Jan 2025 05:35:29 +0800 Subject: [PATCH] Typo fixes in Chapter 4 --- docs/04_errors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/04_errors.md b/docs/04_errors.md index 13dba97..2d2fd6e 100644 --- a/docs/04_errors.md +++ b/docs/04_errors.md @@ -90,9 +90,9 @@ showError :: LispException -> T.Text showError err = case err of (IOError txt) -> T.concat ["Error reading file: ", txt] - (NumArgs int args) -> T.concat ["Error Number Arguments, expected ", T.pack $ show int, " recieved args: ", unwordsList args] + (NumArgs int args) -> T.concat ["Error Number Arguments, expected ", T.pack $ show int, " received args: ", unwordsList args] (LengthOfList txt int) -> T.concat ["Error Length of List in ", txt, " length: ", T.pack $ show int] - (ExpectedList txt) -> T.concat ["Error Expected List in funciton ", txt] + (ExpectedList txt) -> T.concat ["Error Expected List in function ", txt] (TypeMismatch txt val) -> T.concat ["Error Type Mismatch: ", txt, showVal val] (BadSpecialForm txt) -> T.concat ["Error Bad Special Form: ", txt] (NotFunction val) -> T.concat ["Error Not a Function: ", showVal val]