Skip to content

Commit

Permalink
Rollup merge of rust-lang#108929 - eltociear:patch-20, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Fix typo in span_map.rs

correspondance -> correspondence
  • Loading branch information
matthiaskrgr committed Mar 9, 2023
2 parents ceff836 + 1866772 commit 5b3f84d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/render/span_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ pub(crate) enum LinkFromSrc {

/// This function will do at most two things:
///
/// 1. Generate a `span` correspondance map which links an item `span` to its definition `span`.
/// 1. Generate a `span` correspondence map which links an item `span` to its definition `span`.
/// 2. Collect the source code files.
///
/// It returns the `krate`, the source code files and the `span` correspondance map.
/// It returns the `krate`, the source code files and the `span` correspondence map.
///
/// Note about the `span` correspondance map: the keys are actually `(lo, hi)` of `span`s. We don't
/// Note about the `span` correspondence map: the keys are actually `(lo, hi)` of `span`s. We don't
/// need the `span` context later on, only their position, so instead of keep a whole `Span`, we
/// only keep the `lo` and `hi`.
pub(crate) fn collect_spans_and_sources(
Expand Down

0 comments on commit 5b3f84d

Please sign in to comment.