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/html/toc.rs | |
| parent | 0ee6a8e8a564ec0134ebdc0869fab5e4bb28024c (diff) | |
| download | rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.tar.gz rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.zip | |
Fix more misspelled comments and strings.
Diffstat (limited to 'src/librustdoc/html/toc.rs')
| -rw-r--r-- | src/librustdoc/html/toc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
