From e5c7ab0660863a1e191aec546f9e8498d69dae57 Mon Sep 17 00:00:00 2001 From: Barinzaya Date: Sun, 15 Mar 2026 07:11:35 -0400 Subject: [PATCH] Add fmt field tags to core:container/small_array.Small_Array. This enables fmt (and other packages that use it, like log) to format Small_Arrays with only the used portion of the array. --- core/container/small_array/small_array.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/container/small_array/small_array.odin b/core/container/small_array/small_array.odin index 8498da852..901ed419e 100644 --- a/core/container/small_array/small_array.odin +++ b/core/container/small_array/small_array.odin @@ -21,7 +21,7 @@ Example: } */ Small_Array :: struct($N: int, $T: typeid) where N >= 0 { - data: [N]T, + data: [N]T `fmt:",len"`, len: int, }