From 9672d4320052d08b67d497febed4a0ad78bf9252 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 29 Jul 2020 17:38:14 +0200 Subject: [PATCH] =?UTF-8?q?Improve=20argument=20naming=20and=20fix=20gramm?= =?UTF-8?q?ar=20in=20comment=20=E2=99=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 8 ++++---- src/syntax/parsing.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {