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 năm trước cách đây
mục cha
commit
3a8adc6721
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 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
 	context.allocator = allocator
 	for elem, i in elems {
 	for elem, i in elems {
 		if elem != "" {
 		if elem != "" {