fix off by one in roc_dbg

This commit is contained in:
Brendan Hansknecht 2023-12-03 08:22:04 -08:00
parent 497d7755c8
commit e8d2deca90
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 8 additions and 6 deletions

View file

@ -661,7 +661,7 @@ pub fn desugar_expr<'a>(
arena.alloc(Loc {
value: LowLevelDbg(
arena.alloc((
&*arena.alloc_str(&format!("{}:{}", module_path, line_col.line)),
&*arena.alloc_str(&format!("{}:{}", module_path, line_col.line + 1)),
&*arena.alloc_str(dbg_src),
)),
dbg_str,