From 9cb1996e5cb8dd8f4ff51a3d206ebbd14a4054f2 Mon Sep 17 00:00:00 2001 From: "Stian H. Johannesen" Date: Fri, 27 Jun 2025 01:56:59 +0200 Subject: [PATCH] remove dynamic literal in react example --- examples/react/vfs.odin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/react/vfs.odin b/examples/react/vfs.odin index 4baba03..457db22 100644 --- a/examples/react/vfs.odin +++ b/examples/react/vfs.odin @@ -13,7 +13,8 @@ index_paths := make([dynamic]string) // dynamic array to hold index_files/paths // Function to walk a directory and populate virtual_files and index_paths build_virtual_file_system :: proc(root_dir: string) { - dir_stack: [dynamic]string = {root_dir} // stack like array for creating rel paths as we traverse files + dir_stack: [dynamic]string // stack like array for creating rel paths as we traverse files + append(&dir_stack, root_dir) // loop through stack-like array till empty for len(dir_stack) > 0 {