Skip to content

Commit e905f73

Browse files
authored
Documentation
1 parent c8a6c7f commit e905f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/path_from_format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ declare_clippy_lint! {
2020
/// use std::path::PathBuf;
2121
///
2222
/// let base_path = "dir";
23-
/// PathBuf::from(format!("{}/foo/bar", base_path))
23+
/// let sample = PathBuf::from(format!("{}/foo/bar", base_path));
2424
/// ```
2525
/// Use instead:
2626
/// ```rust
2727
/// use std::path::Path;
2828
///
2929
/// let base_path = "dir";
30-
/// Path::new(base_path).join("foo").join("bar")
30+
/// let sample = Path::new(base_path).join("foo").join("bar");
3131
/// ```
3232
#[clippy::version = "1.62.0"]
3333
pub PATH_FROM_FORMAT,

0 commit comments

Comments
 (0)