diff --git a/src/libstd/path.rs b/src/libstd/path.rs index a52a3dbbef9..2ceb60cc3aa 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1245,6 +1245,8 @@ impl Path { /// You can create `Path`s from `String`s, or even other `Path`s: /// /// ``` + /// use std::path::Path; + /// /// let s = String::from("bar.txt"); /// let p = Path::new(&s); /// Path::new(&p);