[path/slashpath] Change join() to take a slice instead of varargs

Achieves parity with filepath.join(), which was similarly changed a while back.
This commit is contained in:
Tetralux
2022-07-21 17:45:33 +00:00
parent e1748a5dd1
commit 3a8adc6721
+1 -1
View File
@@ -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 != "" {