From c4acd8dae2a3072f910fb4e2128ae3d7495f48c6 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Sun, 4 Aug 2024 00:03:58 -0400 Subject: [PATCH] Fix mistake --- docs/types/type-checking.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/types/type-checking.md b/docs/types/type-checking.md index 997edb8..ec7ffc9 100644 --- a/docs/types/type-checking.md +++ b/docs/types/type-checking.md @@ -112,10 +112,9 @@ To achieve this, you can write your own recursive function to check instead: ```rue fun is_int_list(value: Any) -> Bool { - match value { - (Int, Any) => is_int_list(value.rest), - nil => true, - _ => false, + if value is Bytes { + return value == nil; } + value.first is Int && is_int_list(value.rest) } ```