diff --git a/src/lib.rs b/src/lib.rs index 7f1752796..8f5bbdd61 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -204,10 +204,10 @@ impl Feedback { } /// Add more feedback whose spans are local and need to be offset by an - /// `offset` to be correct for this feedbacks context. - pub fn extend_offset(&mut self, other: Feedback, offset: Position) { - self.problems.extend(offset_spans(other.problems, offset)); - self.decos.extend(offset_spans(other.decos, offset)); + /// `offset` to be correct in this feedback's context. + pub fn extend_offset(&mut self, more: Feedback, offset: Position) { + self.problems.extend(offset_spans(more.problems, offset)); + self.decos.extend(offset_spans(more.decos, offset)); } } diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs index ece09a866..a0d9c4e45 100644 --- a/src/syntax/parsing.rs +++ b/src/syntax/parsing.rs @@ -30,7 +30,7 @@ pub fn parse(src: &str, offset: Position, state: &ParseState) -> Pass if newlines >= 2 { Node::Parbreak } else {