From c2c99463720e758d5aa0bdcea19dc5b3dd67292c Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Mon, 9 Jun 2014 00:00:52 -0400 Subject: Fix more misspelled comments and strings. --- src/librustdoc/html/markdown.rs | 2 +- src/librustdoc/html/toc.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/librustdoc/html') 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 /// `..` format. pub fn push<'a>(&'a mut self, level: u32, name: String, id: String) -> &'a str { assert!(level >= 1); -- cgit 1.4.1-3-g733a5