Skip to content

Commit 9ae4828

Browse files
committed
auto merge of #15254 : alex/rust/patch-1, r=alexcrichton
This makes the docs ever-so-slightly easier to read.
2 parents bb5695b + c420f44 commit 9ae4828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/path/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ code, `Path` should be used to refer to the platform-native path.
3535
Creation of a path is typically done with either `Path::new(some_str)` or
3636
`Path::new(some_vec)`. This path can be modified with `.push()` and
3737
`.pop()` (and other setters). The resulting Path can either be passed to another
38-
API that expects a path, or can be turned into a &[u8] with `.as_vec()` or a
39-
Option<&str> with `.as_str()`. Similarly, attributes of the path can be queried
38+
API that expects a path, or can be turned into a `&[u8]` with `.as_vec()` or a
39+
`Option<&str>` with `.as_str()`. Similarly, attributes of the path can be queried
4040
with methods such as `.filename()`. There are also methods that return a new
4141
path instead of modifying the receiver, such as `.join()` or `.dir_path()`.
4242

0 commit comments

Comments
 (0)