Skip to content

Commit

Permalink
fix build error 3
Browse files Browse the repository at this point in the history
  • Loading branch information
merelymyself committed Oct 16, 2022
1 parent 03a7f9b commit b0c6da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/paths_from_format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Checks for `PathBuf::from(format!(..))` calls.
It is not OS-agnostic, and can be harder to read.

### Known Problems
`.join()` introduces additional allocations that are not present when `Pathbuf::push` is
`.join()` introduces additional allocations that are not present when `PathBuf::push` is
used instead.

### Example
Expand All @@ -18,5 +18,5 @@ Use instead:
```
use std::path::Path;
let base_path = "/base";
Path::new(base_path).join("foo").join("bar");
Path::new(&base_path).join("foo").join("bar");
```

0 comments on commit b0c6da1

Please sign in to comment.