Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
merelymyself authored May 15, 2022
1 parent c8a6c7f commit e905f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/path_from_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ declare_clippy_lint! {
/// use std::path::PathBuf;
///
/// let base_path = "dir";
/// PathBuf::from(format!("{}/foo/bar", base_path))
/// let sample = PathBuf::from(format!("{}/foo/bar", base_path));
/// ```
/// Use instead:
/// ```rust
/// use std::path::Path;
///
/// let base_path = "dir";
/// Path::new(base_path).join("foo").join("bar")
/// let sample = Path::new(base_path).join("foo").join("bar");
/// ```
#[clippy::version = "1.62.0"]
pub PATH_FROM_FORMAT,
Expand Down

0 comments on commit e905f73

Please sign in to comment.