Skip to content

Commit 9cb1996

Browse files
committed
remove dynamic literal in react example
1 parent 30321d2 commit 9cb1996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/react/vfs.odin

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ index_paths := make([dynamic]string) // dynamic array to hold index_files/paths
1313

1414
// Function to walk a directory and populate virtual_files and index_paths
1515
build_virtual_file_system :: proc(root_dir: string) {
16-
dir_stack: [dynamic]string = {root_dir} // stack like array for creating rel paths as we traverse files
16+
dir_stack: [dynamic]string // stack like array for creating rel paths as we traverse files
17+
append(&dir_stack, root_dir)
1718

1819
// loop through stack-like array till empty
1920
for len(dir_stack) > 0 {

0 commit comments

Comments
 (0)