about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-06-29 11:11:03 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-06-29 11:11:03 -0700
commitc420f448b3cc8b6cd0c0f6c7f71b1544df8a8f9f (patch)
tree76d7a4aadfbdb24296a11993d4467e61d871088a /src/libstd/path
parentbd9563aa382ccfbda36049786329edcdc609930c (diff)
downloadrust-c420f448b3cc8b6cd0c0f6c7f71b1544df8a8f9f.tar.gz
rust-c420f448b3cc8b6cd0c0f6c7f71b1544df8a8f9f.zip
Wrap two code examples in backticks
This makes the docs ever-so-slightly easier to read.
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs
index e55dc165895..6d48122b186 100644
--- a/src/libstd/path/mod.rs
+++ b/src/libstd/path/mod.rs
@@ -35,8 +35,8 @@ code, `Path` should be used to refer to the platform-native path.
 Creation of a path is typically done with either `Path::new(some_str)` or
 `Path::new(some_vec)`. This path can be modified with `.push()` and
 `.pop()` (and other setters). The resulting Path can either be passed to another
-API that expects a path, or can be turned into a &[u8] with `.as_vec()` or a
-Option<&str> with `.as_str()`. Similarly, attributes of the path can be queried
+API that expects a path, or can be turned into a `&[u8]` with `.as_vec()` or a
+`Option<&str>` with `.as_str()`. Similarly, attributes of the path can be queried
 with methods such as `.filename()`. There are also methods that return a new
 path instead of modifying the receiver, such as `.join()` or `.dir_path()`.