diff options
| author | Nick Hamann <nick@wabbo.org> | 2015-04-21 01:15:51 -0500 |
|---|---|---|
| committer | Nick Hamann <nick@wabbo.org> | 2015-04-21 01:15:51 -0500 |
| commit | ba4d55d130f9577eddf577b9bf99562a8c65857b (patch) | |
| tree | 4490c717c687ae108b5f9fbc357b2c976cdf186a /src/libstd/path.rs | |
| parent | e178495a5e3db9b8dcafce1ec9bbac4906bb92ad (diff) | |
| download | rust-ba4d55d130f9577eddf577b9bf99562a8c65857b.tar.gz rust-ba4d55d130f9577eddf577b9bf99562a8c65857b.zip | |
Separate code into two code blocks
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index b4a359080d7..0a13c77018f 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1248,12 +1248,13 @@ impl Path { /// use std::path::Path; /// /// Path::new("foo.txt"); + /// ``` + /// + /// You can create `Path`s from `String`s, or even other `Path`s: /// - /// // Strings work too: + /// ``` /// let s = String::from("bar.txt"); /// let p = Path::new(&s); - /// - /// // As do other `Path`s: /// Path::new(&p); /// ``` #[stable(feature = "rust1", since = "1.0.0")] |
