Skip to content

Commit b44b550

Browse files
committed
fix notation of CowExt methods in readme
1 parent 53bc216 commit b44b550

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ and [`path/filepath.ToSlash`](https://golang.org/pkg/path/filepath/#ToSlash).
3131
- `PathBuf::to_slash(&self) -> Option<Cow<'_, Path>>`
3232
- `PathBuf::to_slash_lossy(&self) -> Cow<'_, Path>`
3333
- `CowExt`
34-
- `fn from_slash(s: &str) -> Self`
35-
- `fn from_slash_lossy(s: &OsStr) -> Self`
36-
- `fn from_backslash(s: &str) -> Self`
37-
- `fn from_backslash_lossy(s: &OsStr) -> Self`
34+
- `Cow::<Path>::from_slash(s: &str) -> Self`
35+
- `Cow::<Path>::from_slash_lossy(s: &OsStr) -> Self`
36+
- `Cow::<Path>::from_backslash(s: &str) -> Self`
37+
- `Cow::<Path>::from_backslash_lossy(s: &OsStr) -> Self`
3838

3939
```rust
4040
fn example_path_ext() {

0 commit comments

Comments
 (0)