about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-05 08:21:19 +0200
committerRalf Jung <post@ralfj.de>2024-09-08 16:54:28 +0200
commit11bd99de8cc67683f215317dba55c91aaf3b5767 (patch)
tree15b3e7fbc2cdaba500df7b0dada1e8f35e75084a
parenta2410425b3ee0fa75533ada2ea1bb7ebfb2bc84d (diff)
downloadrust-11bd99de8cc67683f215317dba55c91aaf3b5767.tar.gz
rust-11bd99de8cc67683f215317dba55c91aaf3b5767.zip
IntervalSet: add comment about representation
-rw-r--r--compiler/rustc_index/src/interval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/interval.rs b/compiler/rustc_index/src/interval.rs
index 503470f896d..34f541a8cc6 100644
--- a/compiler/rustc_index/src/interval.rs
+++ b/compiler/rustc_index/src/interval.rs
@@ -17,7 +17,7 @@ mod tests;
 /// first value of the following element.
 #[derive(Debug, Clone)]
 pub struct IntervalSet<I> {
-    // Start, end
+    // Start, end (both inclusive)
     map: SmallVec<[(u32, u32); 2]>,
     domain: usize,
     _data: PhantomData<I>,