[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:
1 file changed
+1
-1
@@ -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 != "" {
|
||||||
|
|||||||
Reference in new issue
Block a user