add import (fixup #24649)
This commit is contained in:
@@ -1245,6 +1245,8 @@ impl Path {
|
|||||||
/// You can create `Path`s from `String`s, or even other `Path`s:
|
/// You can create `Path`s from `String`s, or even other `Path`s:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
/// use std::path::Path;
|
||||||
|
///
|
||||||
/// let s = String::from("bar.txt");
|
/// let s = String::from("bar.txt");
|
||||||
/// let p = Path::new(&s);
|
/// let p = Path::new(&s);
|
||||||
/// Path::new(&p);
|
/// Path::new(&p);
|
||||||
|
|||||||
Reference in New Issue
Block a user