Skip to content

Commit 66960c0

Browse files
committed
minor: as per code-styple, add invariant comment
1 parent 5664a2b commit 66960c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/text_edit/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub struct Indel {
1717

1818
#[derive(Default, Debug, Clone)]
1919
pub struct TextEdit {
20+
/// Invariant: disjoint and sorted by `delete`.
2021
indels: Vec<Indel>,
2122
}
2223

0 commit comments

Comments
 (0)