summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
-rw-r--r--src/syntax/parsing.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7f175279..8f5bbdd6 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 ece09a86..a0d9c4e4 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<SyntaxMode
let span = token.span;
let node = match token.v {
// Starting from two newlines counts as a paragraph break, a single
- // newline not.
+ // newline does not.
Token::Space(newlines) => if newlines >= 2 {
Node::Parbreak
} else {