aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/syntax_error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_error.rs b/crates/ra_syntax/src/syntax_error.rs
index 71b228ff6..eaa825cf0 100644
--- a/crates/ra_syntax/src/syntax_error.rs
+++ b/crates/ra_syntax/src/syntax_error.rs
@@ -24,7 +24,7 @@ impl SyntaxError {
24 Self(message.into(), range) 24 Self(message.into(), range)
25 } 25 }
26 pub fn new_at_offset(message: impl Into<String>, offset: TextUnit) -> Self { 26 pub fn new_at_offset(message: impl Into<String>, offset: TextUnit) -> Self {
27 Self(message.into(), TextRange::offset_len(offset, 1.into())) 27 Self(message.into(), TextRange::offset_len(offset, 0.into()))
28 } 28 }
29 29
30 pub fn message(&self) -> &str { 30 pub fn message(&self) -> &str {