Skip to content

Commit 6ecb9b4

Browse files
committed
Fix
1 parent ebda056 commit 6ecb9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/compilers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ fn replace_source_content<'a>(
915915
let end = (range.end as isize + offset) as usize;
916916

917917
content.splice(start..end, new_value.bytes());
918-
offset += new_value.len() as isize - (end - start) as isize;
918+
offset += new_value.bytes().len() as isize - (end - start) as isize;
919919
}
920920

921921
String::from_utf8(content).unwrap()

0 commit comments

Comments
 (0)