Skip to content

Commit d6f7577

Browse files
author
lukaramu
authored
Fix typos in std::path's docs
* Closed an unclosed paren * seperator -> separator * deperator -> separator
1 parent 32132d9 commit d6f7577

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/path.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ use sys::path::{is_sep_byte, is_verbatim_sep, MAIN_SEP_STR, parse_prefix};
104104
/// Windows uses a variety of path prefix styles, including references to drive
105105
/// volumes (like `C:`), network shared folders (like `\\server\share`), and
106106
/// others. In addition, some path prefixes are "verbatim" (i.e. prefixed with
107-
/// `\\?\`, in which case `/` is *not* treated as a separator and essentially no
108-
/// normalization is performed.
107+
/// `\\?\`), in which case `/` is *not* treated as a separator and essentially
108+
/// no normalization is performed.
109109
///
110110
/// # Examples
111111
///
@@ -510,7 +510,7 @@ pub enum Component<'a> {
510510

511511
/// The root directory component, appears after any prefix and before anything else.
512512
///
513-
/// It represents a deperator that designates that a path starts from root.
513+
/// It represents a separator that designates that a path starts from root.
514514
#[stable(feature = "rust1", since = "1.0.0")]
515515
RootDir,
516516

@@ -1965,7 +1965,7 @@ impl Path {
19651965
///
19661966
/// When parsing the path, there is a small amount of normalization:
19671967
///
1968-
/// * Repeated seperators are ignored, so `a/b` and `a//b` both have
1968+
/// * Repeated separators are ignored, so `a/b` and `a//b` both have
19691969
/// `a` and `b` as components.
19701970
///
19711971
/// * Occurentces of `.` are normalized away, exept if they are at the

0 commit comments

Comments
 (0)