Skip to content

Commit 4e9b810

Browse files
author
Nick Hamann
committed
---
yaml --- r: 209909 b: refs/heads/try c: ba4d55d h: refs/heads/master i: 209907: faf5f26 v: v3
1 parent 5275aa1 commit 4e9b810

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: e178495a5e3db9b8dcafce1ec9bbac4906bb92ad
5+
refs/heads/try: ba4d55d130f9577eddf577b9bf99562a8c65857b
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libstd/path.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,12 +1248,13 @@ impl Path {
12481248
/// use std::path::Path;
12491249
///
12501250
/// Path::new("foo.txt");
1251+
/// ```
1252+
///
1253+
/// You can create `Path`s from `String`s, or even other `Path`s:
12511254
///
1252-
/// // Strings work too:
1255+
/// ```
12531256
/// let s = String::from("bar.txt");
12541257
/// let p = Path::new(&s);
1255-
///
1256-
/// // As do other `Path`s:
12571258
/// Path::new(&p);
12581259
/// ```
12591260
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)