1
Fork 0

Fix a few typos in the code

This commit is contained in:
Sylvestre Ledru 2016-07-03 10:00:52 +02:00
parent ecbfa4749a
commit 872d107dea
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ pub enum Class {
/// ///
/// The classifier will call into the `Writer` implementation as it finds spans /// The classifier will call into the `Writer` implementation as it finds spans
/// of text to highlight. Exactly how that text should be highlighted is up to /// of text to highlight. Exactly how that text should be highlighted is up to
/// the implemention. /// the implementation.
pub trait Writer { pub trait Writer {
/// Called when we start processing a span of text that should be highlighted. /// Called when we start processing a span of text that should be highlighted.
/// The `Class` argument specifies how it should be highlighted. /// The `Class` argument specifies how it should be highlighted.

View file

@ -2721,7 +2721,7 @@ impl<'a> fmt::Display for Sidebar<'a> {
let parentlen = cx.current.len() - if it.is_mod() {1} else {0}; let parentlen = cx.current.len() - if it.is_mod() {1} else {0};
// the sidebar is designed to display sibling functions, modules and // the sidebar is designed to display sibling functions, modules and
// other miscellaneous informations. since there are lots of sibling // other miscellaneous information. since there are lots of sibling
// items (and that causes quadratic growth in large modules), // items (and that causes quadratic growth in large modules),
// we refactor common parts into a shared JavaScript file per module. // we refactor common parts into a shared JavaScript file per module.
// still, we don't move everything into JS because we want to preserve // still, we don't move everything into JS because we want to preserve

View file

@ -239,7 +239,7 @@ mod fallback {
text[..offset].iter().rposition(|elt| *elt == x) text[..offset].iter().rposition(|elt| *elt == x)
} }
// test fallback implementations on all plattforms // test fallback implementations on all platforms
#[test] #[test]
fn matches_one() { fn matches_one() {
assert_eq!(Some(0), memchr(b'a', b"a")); assert_eq!(Some(0), memchr(b'a', b"a"));