Skip to content

Commit 354b63e

Browse files
committed
improve docs slightly
1 parent 299b837 commit 354b63e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/paths_from_format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare_clippy_lint! {
1818
/// It is not OS-agnostic, and can be harder to read.
1919
///
2020
/// ### Known Problems
21-
/// `.join()` introduces additional allocations that are not present when `Pathbuf::push` is
21+
/// `.join()` introduces additional allocations that are not present when `PathBuf::push` is
2222
/// used instead.
2323
///
2424
/// ### Example
@@ -31,7 +31,7 @@ declare_clippy_lint! {
3131
/// ```rust
3232
/// use std::path::Path;
3333
/// let base_path = "/base";
34-
/// Path::new(base_path).join("foo").join("bar");
34+
/// Path::new(&base_path).join("foo").join("bar");
3535
/// ```
3636
#[clippy::version = "1.62.0"]
3737
pub PATHS_FROM_FORMAT,

0 commit comments

Comments
 (0)