From f8955de50bb021ea1a7a2b61e745259f46f82953 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 10 Dec 2024 05:11:01 +0800 Subject: s/err/error/g --- language_description.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language_description.md b/language_description.md index fd54e50..4c175bf 100644 --- a/language_description.md +++ b/language_description.md @@ -37,7 +37,7 @@ function could not be called (for example, if the stack is full). For example, `malloc` for allocating dynamic memory could be structured like this: ```e2 -func malloc(size_t s) (void*, err) { +func malloc(size_t s) (void*, error) { /* What malloc is supposed to do */ return ptr, NIL; } onfail { @@ -56,7 +56,7 @@ error, so it might be natural to set their error return value to something like `ESTACK`: ```e2 -func f() (err) { +func f() (error) { return NIL; } onfail { return ESTACK; -- cgit v1.2.3