fixup! mv spans to separate span file

This commit is contained in:
Noah Hellman 2023-02-01 18:26:49 +01:00
parent 1bbfd4a96a
commit d2df3eb8a1

View file

@ -282,7 +282,7 @@ impl<'s, 'i> InlineSpansSlice<'s, 'i> {
} else {
(
Span::new(self.spans[0].start() + self.first_skip, self.spans[0].end()),
1..self.spans.len().saturating_sub(2),
1..1 + self.spans.len().saturating_sub(2),
Span::by_len(self.spans[self.spans.len() - 1].start(), self.last_len),
)
};