From 66960c095c8d1c64d3bf5fba6fe02b963b1b94f8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Aug 2021 13:13:02 +0300 Subject: [PATCH] minor: as per code-styple, add invariant comment --- crates/text_edit/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/text_edit/src/lib.rs b/crates/text_edit/src/lib.rs index eb3c8caa2a7..685039c4bec 100644 --- a/crates/text_edit/src/lib.rs +++ b/crates/text_edit/src/lib.rs @@ -17,6 +17,7 @@ pub struct Indel { #[derive(Default, Debug, Clone)] pub struct TextEdit { + /// Invariant: disjoint and sorted by `delete`. indels: Vec, }