diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2014-06-09 00:00:52 -0400 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2014-06-10 11:24:17 -0400 |
| commit | c2c99463720e758d5aa0bdcea19dc5b3dd67292c (patch) | |
| tree | b6744e6d280594324f1f22fe8b76ccd03f7eedb0 /src/librustdoc | |
| parent | 0ee6a8e8a564ec0134ebdc0869fab5e4bb28024c (diff) | |
| download | rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.tar.gz rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.zip | |
Fix more misspelled comments and strings.
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/toc.rs | 8 | ||||
| -rw-r--r-- | src/librustdoc/passes.rs | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 260d26c5437..83f99fc881b 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -390,7 +390,7 @@ fn parse_lang_string(string: &str) -> (bool,bool,bool,bool) { } /// By default this markdown renderer generates anchors for each header in the -/// rendered document. The anchor name is the contents of the header spearated +/// rendered document. The anchor name is the contents of the header separated /// by hyphens, and a task-local map is used to disambiguate among duplicate /// headers (numbers are appended). /// diff --git a/src/librustdoc/html/toc.rs b/src/librustdoc/html/toc.rs index 5bc6d8031ac..c6d8632082e 100644 --- a/src/librustdoc/html/toc.rs +++ b/src/librustdoc/html/toc.rs @@ -49,11 +49,11 @@ pub struct TocEntry { #[deriving(PartialEq)] pub struct TocBuilder { top_level: Toc, - /// The current heirachy of parent headings, the levels are + /// The current hierarchy of parent headings, the levels are /// strictly increasing (i.e. chain[0].level < chain[1].level < - /// ...) with each entry being the most recent occurance of a + /// ...) with each entry being the most recent occurrence of a /// heading with that level (it doesn't include the most recent - /// occurences of every level, just, if *is* in `chain` then is is + /// occurrences of every level, just, if *is* in `chain` then is is /// the most recent one). /// /// We also have `chain[0].level <= top_level.entries[last]`. @@ -123,7 +123,7 @@ impl TocBuilder { } /// Push a level `level` heading into the appropriate place in the - /// heirarchy, returning a string containing the section number in + /// hierarchy, returning a string containing the section number in /// `<num>.<num>.<num>` format. pub fn push<'a>(&'a mut self, level: u32, name: String, id: String) -> &'a str { assert!(level >= 1); diff --git a/src/librustdoc/passes.rs b/src/librustdoc/passes.rs index 727258bec8f..31eb83cb920 100644 --- a/src/librustdoc/passes.rs +++ b/src/librustdoc/passes.rs @@ -383,7 +383,7 @@ mod unindent_tests { #[test] fn should_ignore_first_line_indent() { - // Thi first line of the first paragraph may not be indented as + // The first line of the first paragraph may not be indented as // far due to the way the doc string was written: // // #[doc = "Start way over here |
