]> git.lizzy.rs Git - rust.git/blobdiff - src/vertical.rs
Change `print_diff` to output the correct line number.
[rust.git] / src / vertical.rs
index e76f44ca39b05f6ebda4464817e3715975ff5796..3f5339201063fb183e90f48157943a3af4876186 100644 (file)
@@ -126,7 +126,7 @@ pub fn rewrite_with_alignment<T: AlignedItem>(
     } else {
         ("", fields.len() - 1)
     };
-    let init = &fields[0..group_index + 1];
+    let init = &fields[0..=group_index];
     let rest = &fields[group_index + 1..];
     let init_last_pos = if rest.is_empty() {
         span.hi()