Skip to content

Commit 3e67b6b

Browse files
committed
add import (fixup #24649)
1 parent 9316b03 commit 3e67b6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,8 @@ impl Path {
12451245
/// You can create `Path`s from `String`s, or even other `Path`s:
12461246
///
12471247
/// ```
1248+
/// use std::path::Path;
1249+
///
12481250
/// let s = String::from("bar.txt");
12491251
/// let p = Path::new(&s);
12501252
/// Path::new(&p);

0 commit comments

Comments
 (0)