Merge pull request #1893 from Tetralux/slash-join-slice

[path/slashpath] Change join() to take a slice instead of varargs
This commit is contained in:
gingerBill
2022-07-21 18:59:04 +01:00
committed by GitHub

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