@@ -316,7 +316,7 @@ include!(concat!(env!("OUT_DIR"), "/matcher.rs"));
316316/// point to the next character after the entity.
317317/// * It doesn’t find a match: returns `None` and `iter` is updated to point
318318/// to the next character than could plausibly start an entity (not
319- /// necessarily b'&', though; the only gaurantee is that we didn’t skip a
319+ /// necessarily b'&', though; the only guarantee is that we didn’t skip a
320320/// potential entity).
321321///
322322/// This version uses matchgen instead of the `ENTITIES` map. It is faster at
@@ -375,7 +375,7 @@ const PEEK_MATCH_ERROR: &str = "iter.next() did not match previous peek(iter)";
375375/// point to the next character after the entity.
376376/// * It doesn’t find a match: returns `None` and `iter` is updated to point
377377/// to the next character than could plausibly start an entity (not
378- /// necessarily b'&', though; the only gaurantee is that we didn’t skip a
378+ /// necessarily b'&', though; the only guarantee is that we didn’t skip a
379379/// potential entity).
380380///
381381/// This version uses the [`ENTITIES`] map instead of matchgen. It is slower at
@@ -500,8 +500,8 @@ fn match_entity_slow<'a>(
500500fn match_numeric_entity (
501501 iter : & mut slice:: Iter < u8 > ,
502502) -> Option < Cow < ' static , [ u8 ] > > {
503- assert_next_eq ( iter, Some ( b'&' ) , "match_numeric_entity() expexted '&'" ) ;
504- assert_next_eq ( iter, Some ( b'#' ) , "match_numeric_entity() expexted '#'" ) ;
503+ assert_next_eq ( iter, Some ( b'&' ) , "match_numeric_entity() expected '&'" ) ;
504+ assert_next_eq ( iter, Some ( b'#' ) , "match_numeric_entity() expected '#'" ) ;
505505
506506 let number = match peek ( iter) {
507507 c @ Some ( b'x' | b'X' ) => {
0 commit comments