We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab9fc9 commit c6f3b7dCopy full SHA for c6f3b7d
fathom/src/source.rs
@@ -101,7 +101,7 @@ impl StringInterner {
101
102
/// Get or intern a slice of strings in the form `_{index}` for each index in `range`.
103
pub fn get_tuple_labels(&mut self, range: Range<usize>) -> &[StringId] {
104
- self.reserve_tuple_labels(range.end);
+ self.reserve_tuple_labels(range.end.saturating_sub(1));
105
&self.tuple_labels[range]
106
}
107
0 commit comments