浏览代码

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

[path/slashpath] Change join() to take a slice instead of varargs
gingerBill 3 年之前
父节点
当前提交
3d3ccf061f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 != "" {