Browse Source

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

Achieves parity with filepath.join(), which was similarly changed a while back.
Tetralux 3 years ago
parent
commit
3a8adc6721
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/path/slashpath/path.odin

+ 1 - 1
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 != "" {