File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.
749749pub 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) ;
You can’t perform that action at this time.
0 commit comments