diff options
| author | Dániel Buga <bugadani@gmail.com> | 2020-10-27 16:55:20 +0100 |
|---|---|---|
| committer | Dániel Buga <bugadani@gmail.com> | 2020-10-27 17:08:14 +0100 |
| commit | da64d07191d6703c64e33c5b6335441a0456b77c (patch) | |
| tree | c336589b21da25ae8e3dea13712590ec04fd6a28 | |
| parent | c9b606ed679dd94f3f920ad339c0d2be0952b16c (diff) | |
| download | rust-da64d07191d6703c64e33c5b6335441a0456b77c.tar.gz rust-da64d07191d6703c64e33c5b6335441a0456b77c.zip | |
Fix typo in comment
| -rw-r--r-- | compiler/rustc_span/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index d036c078049..29c686e5d08 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -738,14 +738,14 @@ impl<D: Decoder> Decodable<D> for Span { } /// Calls the provided closure, using the provided `SourceMap` to format -/// any spans that are debug-printed during the closure'e exectuino. +/// any spans that are debug-printed during the closure's execution. /// /// Normally, the global `TyCtxt` is used to retrieve the `SourceMap` /// (see `rustc_interface::callbacks::span_debug1). However, some parts /// of the compiler (e.g. `rustc_parse`) may debug-print `Span`s before /// a `TyCtxt` is available. In this case, we fall back to /// the `SourceMap` provided to this function. If that is not available, -/// we fall back to printing the raw `Span` field values +/// we fall back to printing the raw `Span` field values. pub fn with_source_map<T, F: FnOnce() -> T>(source_map: Lrc<SourceMap>, f: F) -> T { SESSION_GLOBALS.with(|session_globals| { *session_globals.source_map.borrow_mut() = Some(source_map); |
