diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2022-07-21 18:59:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-21 18:59:04 +0100 |
| commit | 3d3ccf061f535770b4030d0e851056f00a5f8d94 (patch) | |
| tree | 48b2c56ff6733917f50efbe86c0f2d8a10445130 | |
| parent | e1748a5dd172c751354196cc6cc146ae675349bc (diff) | |
| parent | 3a8adc67216f9e16e0ba5e43b485c7b252ec17ee (diff) | |
Merge pull request #1893 from Tetralux/slash-join-slice
[path/slashpath] Change join() to take a slice instead of varargs
| -rw-r--r-- | core/path/slashpath/path.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/path/slashpath/path.odin b/core/path/slashpath/path.odin index 8ac10e655..865f619bf 100644 --- a/core/path/slashpath/path.odin +++ b/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 != "" {
|