File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3208,8 +3208,8 @@ declare_clippy_lint! {
32083208 /// ### Example
32093209 /// ```rust
32103210 /// let path = std::path::Path::new("/bin");
3211- /// let res = path.join("/sh");
3212- /// assert_eq!(res, PathBuf::from("/sh"));
3211+ /// let res = path.join("/sh");
3212+ /// assert_eq!(res, std::path:: PathBuf::from("/sh"));
32133213 /// ```
32143214 ///
32153215 /// Use instead;
@@ -3218,11 +3218,11 @@ declare_clippy_lint! {
32183218 ///
32193219 /// // If this was unintentional, remove the leading separator
32203220 /// let extend = path.join("sh");
3221- /// assert_eq!(extend, PathBuf::from("/bin/sh"));
3221+ /// assert_eq!(extend, std::path:: PathBuf::from("/bin/sh"));
32223222 ///
32233223 /// // If this was intentional, create a new path instead
3224- /// let new = Path::new("/sh")
3225- /// assert_eq!(new PathBuf::from("/sh"));
3224+ /// let new = std::path:: Path::new("/sh")
3225+ /// assert_eq!(new std::path:: PathBuf::from("/sh"));
32263226 /// ```
32273227 #[ clippy:: version = "1.70.0" ]
32283228 pub PATH_JOIN_CORRECTION ,
You can’t perform that action at this time.
0 commit comments