about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-15 20:11:32 +0200
committerGitHub <noreply@github.com>2022-08-15 20:11:32 +0200
commit710bd23df1d4b9e87a0ea15bb51ca9de8c4eea4e (patch)
tree78165c905e45c7f4ae5f0656bd8d84095a7bcf9d /compiler/rustc_span
parent9b4ea391a132ec5f5de40079597ab7ff2fd691ad (diff)
parent3e0df4b5d743a5247a8d3174a3a4a55f635847a6 (diff)
downloadrust-710bd23df1d4b9e87a0ea15bb51ca9de8c4eea4e.tar.gz
rust-710bd23df1d4b9e87a0ea15bb51ca9de8c4eea4e.zip
Rollup merge of #100031 - GoldsteinE:try-removing-the-field, r=michaelwoerister
improve "try ignoring the field" diagnostic

Closes #95795
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/source_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs
index 28381157d50..ad9f5ba85a1 100644
--- a/compiler/rustc_span/src/source_map.rs
+++ b/compiler/rustc_span/src/source_map.rs
@@ -722,7 +722,7 @@ impl SourceMap {
         })
     }
 
-    /// Extends the given `Span` to just after the next occurrence of `c`.
+    /// Extends the given `Span` to just before the next occurrence of `c`.
     pub fn span_extend_to_next_char(&self, sp: Span, c: char, accept_newlines: bool) -> Span {
         if let Ok(next_source) = self.span_to_next_source(sp) {
             let next_source = next_source.split(c).next().unwrap_or("");