From 9a114b38d3e5d659b69d6a2608c184583dc2c20c Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sat, 17 Feb 2024 15:19:27 +0100 Subject: [PATCH] Updated retry and test.c3 examples. --- resources/examples/retry.c3 | 2 +- resources/testfragments/test.c3 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/examples/retry.c3 b/resources/examples/retry.c3 index ff921048b..8d29c05c1 100644 --- a/resources/examples/retry.c3 +++ b/resources/examples/retry.c3 @@ -27,7 +27,7 @@ macro @retry(#function, int retries = 3) } return result; } while (retries-- > 0); - return e!; + return e?; } fn void main() diff --git a/resources/testfragments/test.c3 b/resources/testfragments/test.c3 index 802ad4281..008a7ae47 100644 --- a/resources/testfragments/test.c3 +++ b/resources/testfragments/test.c3 @@ -4,9 +4,9 @@ extern fn int printf(char* message, ...); macro void @swap(&a, &b) { - $typeof(a) temp = a; - a = b; - b = temp; + $typeof(*a) temp = *a; + *a = *b; + *b = temp; } fn void main()