Skip to content

Commit

Permalink
fix span_extend_to_next_char docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldsteinE committed Aug 13, 2022
1 parent 3fb249b commit 3e0df4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_span/src/source_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down

0 comments on commit 3e0df4b

Please sign in to comment.