@@ -514,7 +514,7 @@ struct Classifier<'src> {
514
514
515
515
impl < ' src > Classifier < ' src > {
516
516
/// 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 `.
518
518
fn new ( src : & str , file_span : Span , decoration_info : Option < DecorationInfo > ) -> Classifier < ' _ > {
519
519
let tokens = PeekIter :: new ( TokenIter { src, cursor : Cursor :: new ( src) } ) ;
520
520
let decorations = decoration_info. map ( Decorations :: new) ;
@@ -649,7 +649,7 @@ impl<'src> Classifier<'src> {
649
649
///
650
650
/// `before` is the position of the given token in the `source` string and is used as "lo" byte
651
651
/// in case we want to try to generate a link for this token using the
652
- /// `span_correspondance_map `.
652
+ /// `span_correspondence_map `.
653
653
fn advance (
654
654
& mut self ,
655
655
token : TokenKind ,
@@ -895,7 +895,7 @@ fn exit_span(out: &mut impl Write, closing_tag: &str) {
895
895
/// flexible.
896
896
///
897
897
/// 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
899
899
/// generate a link for this element (which corresponds to where its definition is located).
900
900
fn string < T : Display > (
901
901
out : & mut impl Write ,
@@ -916,7 +916,7 @@ fn string<T: Display>(
916
916
/// * If `klass` is `Some` but `klass.get_span()` is `None`, it writes the text wrapped in a
917
917
/// `<span>` with the provided `klass`.
918
918
/// * 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
920
920
/// in `span_map.rs::collect_spans_and_sources`. If it cannot retrieve the information, then it's
921
921
/// the same as the second point (`klass` is `Some` but doesn't have a [`rustc_span::Span`]).
922
922
fn string_without_closing_tag < T : Display > (
@@ -963,7 +963,7 @@ fn string_without_closing_tag<T: Display>(
963
963
964
964
if let Some ( href_context) = href_context {
965
965
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| {
967
967
let context = href_context. context ;
968
968
// FIXME: later on, it'd be nice to provide two links (if possible) for all items:
969
969
// one to the documentation page and one to the source definition.
0 commit comments