From 03cdc8e3b18c0de35a4a8152847eb9eeb0f62e6e Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Wed, 21 Dec 2022 15:59:29 +0100 Subject: [PATCH] Add "get_ref" to list. --- lib/std/list.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/list.c3 b/lib/std/list.c3 index 4e169bb94..6fdd2a7ed 100644 --- a/lib/std/list.c3 +++ b/lib/std/list.c3 @@ -162,7 +162,7 @@ macro Type List.@item_at(List &list, usz index) @operator([]) return list.entries[index]; } -macro Type* List.@item_ref(List &list, usz index) @operator(&[]) +fn Type* List.get_ref(List* list, usz index) @operator(&[]) @inline { return &list.entries[index]; }