From 45c38d5f88dc2c74644db3f7be2a9f4e21c0ebce Mon Sep 17 00:00:00 2001 From: "Johan B.W. de Vries" Date: Mon, 5 May 2025 12:26:15 +0200 Subject: [PATCH] Fix: function comment that's no longer true --- phasm/stdlib/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phasm/stdlib/types.py b/phasm/stdlib/types.py index 7a4d4a6..5c7e46a 100644 --- a/phasm/stdlib/types.py +++ b/phasm/stdlib/types.py @@ -39,8 +39,7 @@ def __subscript_bytes__(g: Generator, adr: i32, ofs: i32) -> i32: Returns an index from a bytes value If ofs is more than the length of the bytes, this - function returns 0, following the 'no undefined behaviour' - philosophy. + function stop as unreachable. adr i32 The pointer for the allocated bytes ofs i32 The offset within the allocated bytes