diff options
| author | Michael Goulet <michael@errs.io> | 2022-05-05 19:34:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-05 19:34:26 -0700 |
| commit | 8bcf4b0efc3a11cc4745e128f237392387300e93 (patch) | |
| tree | c4a759571a0c0813473f9fe4978493f9de3cba82 /tests/rustdoc-js-std/reference-shrink.js | |
| parent | 7cdad775363e5c4b723870ecfcd091ee1a13a9dd (diff) | |
| parent | 4fcbc53820ab423bbeb41f07822369aa05da1d68 (diff) | |
| download | rust-8bcf4b0efc3a11cc4745e128f237392387300e93.tar.gz rust-8bcf4b0efc3a11cc4745e128f237392387300e93.zip | |
Rollup merge of #96744 - est31:join_osstr, r=thomcc
Implement [OsStr]::join
Implements join for `OsStr` and `OsString` slices:
```Rust
let strings = [OsStr::new("hello"), OsStr::new("dear"), OsStr::new("world")];
assert_eq!("hello dear world", strings.join(OsStr::new(" ")));
````
This saves one from converting to strings and back, or from implementing it manually.
Diffstat (limited to 'tests/rustdoc-js-std/reference-shrink.js')
0 files changed, 0 insertions, 0 deletions
