From 3a8adc67216f9e16e0ba5e43b485c7b252ec17ee Mon Sep 17 00:00:00 2001 From: Tetralux Date: Thu, 21 Jul 2022 17:45:33 +0000 Subject: [PATCH] [path/slashpath] Change join() to take a slice instead of varargs Achieves parity with filepath.join(), which was similarly changed a while back. --- core/path/slashpath/path.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/path/slashpath/path.odin b/core/path/slashpath/path.odin index 8ac10e655..865f619bf 100644 --- a/core/path/slashpath/path.odin +++ b/core/path/slashpath/path.odin @@ -146,7 +146,7 @@ clean :: proc(path: string, allocator := context.allocator) -> string { } // join joins numerous path elements into a single path -join :: proc(elems: ..string, allocator := context.allocator) -> string { +join :: proc(elems: []string, allocator := context.allocator) -> string { context.allocator = allocator for elem, i in elems { if elem != "" {