about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorlukaramu <lukaramu@users.noreply.github.com>2017-04-18 15:03:41 +0200
committerGitHub <noreply@github.com>2017-04-18 15:03:41 +0200
commitd6f7577279b28ab0551e60820b737aebf4f61105 (patch)
tree551f94398636f5c754f18c0b749667d5939e0b80 /src/libstd
parent32132d9fb66d95ab3bfbc5eff969a1e084310705 (diff)
downloadrust-d6f7577279b28ab0551e60820b737aebf4f61105.tar.gz
rust-d6f7577279b28ab0551e60820b737aebf4f61105.zip
Fix typos in std::path's docs
* Closed an unclosed paren
* seperator -> separator
* deperator -> separator
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index ce13b57f0a2..22889b5de4c 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -104,8 +104,8 @@ use sys::path::{is_sep_byte, is_verbatim_sep, MAIN_SEP_STR, parse_prefix};
 /// Windows uses a variety of path prefix styles, including references to drive
 /// volumes (like `C:`), network shared folders (like `\\server\share`), and
 /// others. In addition, some path prefixes are "verbatim" (i.e. prefixed with
-/// `\\?\`, in which case `/` is *not* treated as a separator and essentially no
-/// normalization is performed.
+/// `\\?\`), in which case `/` is *not* treated as a separator and essentially
+/// no normalization is performed.
 ///
 /// # Examples
 ///
@@ -510,7 +510,7 @@ pub enum Component<'a> {
 
     /// The root directory component, appears after any prefix and before anything else.
     ///
-    /// It represents a deperator that designates that a path starts from root.
+    /// It represents a separator that designates that a path starts from root.
     #[stable(feature = "rust1", since = "1.0.0")]
     RootDir,
 
@@ -1965,7 +1965,7 @@ impl Path {
     ///
     /// When parsing the path, there is a small amount of normalization:
     ///
-    /// * Repeated seperators are ignored, so `a/b` and `a//b` both have
+    /// * Repeated separators are ignored, so `a/b` and `a//b` both have
     ///   `a` and `b` as components.
     ///
     /// * Occurentces of `.` are normalized away, exept if they are at the