Skip to content

Commit b0c6da1

Browse files
committed
fix build error 3
1 parent 03a7f9b commit b0c6da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/paths_from_format.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Checks for `PathBuf::from(format!(..))` calls.
55
It is not OS-agnostic, and can be harder to read.
66

77
### Known Problems
8-
`.join()` introduces additional allocations that are not present when `Pathbuf::push` is
8+
`.join()` introduces additional allocations that are not present when `PathBuf::push` is
99
used instead.
1010

1111
### Example
@@ -18,5 +18,5 @@ Use instead:
1818
```
1919
use std::path::Path;
2020
let base_path = "/base";
21-
Path::new(base_path).join("foo").join("bar");
21+
Path::new(&base_path).join("foo").join("bar");
2222
```

0 commit comments

Comments
 (0)