# fixups, and modify std.mem.join and std.os.path.resolve API · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/36bade5c562bf0b2479b6dfdd465a1a312890835)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 36bade5c562bf0b2479b6dfdd465a1a312890835

Requested commit: 36bade5c562bf0b2479b6dfdd465a1a312890835

Commit: 36bade5c562bf0b2479b6dfdd465a1a312890835

Tree: 5ecb89cb50e08dc7032e31c84128f5d32d20d315

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fixups, and modify std.mem.join and std.os.path.resolve API

 * zig fmt
 * std.mem.join takes a slice of slices instead of var args
 * std.mem.join takes a separator slice rather than byte,
   and always inserts it. Previously it would not insert the separator
   if there already was one, violating the documented behavior.
 * std.mem.join calculates exactly the correct amount to allocate
   and has no call to allocator.shrink()
 * bring back joinWindows and joinPosix and the corresponding tests.
   it is intended to be able to call these functions from any OS.
 * rename std.os.path.resolveSlice to resolve (now resolve takes
   a slice of slices instead of var args)

```

## Parents

- [c804ae2d6b1f62d9cb45db2613d36ef14ac539a0](https://git.cafe/gitcafe/zig/commit/c804ae2d6b1f62d9cb45db2613d36ef14ac539a0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/36bade5c562bf0b2479b6dfdd465a1a312890835?format=markdown)
