Skip to content

Commit da64d07

Browse files
committed
Fix typo in comment
1 parent c9b606e commit da64d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_span/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,14 @@ impl<D: Decoder> Decodable<D> for Span {
738738
}
739739

740740
/// Calls the provided closure, using the provided `SourceMap` to format
741-
/// any spans that are debug-printed during the closure'e exectuino.
741+
/// any spans that are debug-printed during the closure's execution.
742742
///
743743
/// Normally, the global `TyCtxt` is used to retrieve the `SourceMap`
744744
/// (see `rustc_interface::callbacks::span_debug1). However, some parts
745745
/// of the compiler (e.g. `rustc_parse`) may debug-print `Span`s before
746746
/// a `TyCtxt` is available. In this case, we fall back to
747747
/// the `SourceMap` provided to this function. If that is not available,
748-
/// we fall back to printing the raw `Span` field values
748+
/// we fall back to printing the raw `Span` field values.
749749
pub fn with_source_map<T, F: FnOnce() -> T>(source_map: Lrc<SourceMap>, f: F) -> T {
750750
SESSION_GLOBALS.with(|session_globals| {
751751
*session_globals.source_map.borrow_mut() = Some(source_map);

0 commit comments

Comments
 (0)