@@ -514,7 +514,7 @@ struct Classifier<'src> {
514514
515515impl < ' src > Classifier < ' src > {
516516 /// Takes as argument the source code to HTML-ify, the rust edition to use and the source code
517- /// file span which will be used later on by the `span_correspondance_map `.
517+ /// file span which will be used later on by the `span_correspondence_map `.
518518 fn new ( src : & str , file_span : Span , decoration_info : Option < DecorationInfo > ) -> Classifier < ' _ > {
519519 let tokens = PeekIter :: new ( TokenIter { src, cursor : Cursor :: new ( src) } ) ;
520520 let decorations = decoration_info. map ( Decorations :: new) ;
@@ -649,7 +649,7 @@ impl<'src> Classifier<'src> {
649649 ///
650650 /// `before` is the position of the given token in the `source` string and is used as "lo" byte
651651 /// in case we want to try to generate a link for this token using the
652- /// `span_correspondance_map `.
652+ /// `span_correspondence_map `.
653653 fn advance (
654654 & mut self ,
655655 token : TokenKind ,
@@ -895,7 +895,7 @@ fn exit_span(out: &mut impl Write, closing_tag: &str) {
895895/// flexible.
896896///
897897/// Note that if `context` is not `None` and that the given `klass` contains a `Span`, the function
898- /// will then try to find this `span` in the `span_correspondance_map `. If found, it'll then
898+ /// will then try to find this `span` in the `span_correspondence_map `. If found, it'll then
899899/// generate a link for this element (which corresponds to where its definition is located).
900900fn string < T : Display > (
901901 out : & mut impl Write ,
@@ -916,7 +916,7 @@ fn string<T: Display>(
916916/// * If `klass` is `Some` but `klass.get_span()` is `None`, it writes the text wrapped in a
917917/// `<span>` with the provided `klass`.
918918/// * If `klass` is `Some` and has a [`rustc_span::Span`], it then tries to generate a link (`<a>`
919- /// element) by retrieving the link information from the `span_correspondance_map ` that was filled
919+ /// element) by retrieving the link information from the `span_correspondence_map ` that was filled
920920/// in `span_map.rs::collect_spans_and_sources`. If it cannot retrieve the information, then it's
921921/// the same as the second point (`klass` is `Some` but doesn't have a [`rustc_span::Span`]).
922922fn string_without_closing_tag < T : Display > (
@@ -963,7 +963,7 @@ fn string_without_closing_tag<T: Display>(
963963
964964 if let Some ( href_context) = href_context {
965965 if let Some ( href) =
966- href_context. context . shared . span_correspondance_map . get ( & def_span) . and_then ( |href| {
966+ href_context. context . shared . span_correspondence_map . get ( & def_span) . and_then ( |href| {
967967 let context = href_context. context ;
968968 // FIXME: later on, it'd be nice to provide two links (if possible) for all items:
969969 // one to the documentation page and one to the source definition.
0 commit comments