Fix typos in std::path's docs

* Closed an unclosed paren
* seperator -> separator
* deperator -> separator
This commit is contained in:
lukaramu 2017-04-18 15:03:41 +02:00 committed by GitHub
parent 32132d9fb6
commit d6f7577279
1 changed files with 4 additions and 4 deletions

View File

@ -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