From 5ebd24d52883ea78eb043a81f6ce29e3831b339f Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 29 Jan 2022 10:41:55 +0100 Subject: [PATCH] :memo: Improve assertion comment --- crates/editor/src/multi_buffer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs index f454106479..5c62646559 100644 --- a/crates/editor/src/multi_buffer.rs +++ b/crates/editor/src/multi_buffer.rs @@ -2788,7 +2788,8 @@ mod tests { .map(|a| a.1) .collect(); - // Ensure anchors point to a valid excerpt after refreshing them. + // Ensure the newly-refreshed anchors point to a valid excerpt and don't + // overshoot its boundaries. let mut cursor = multibuffer.excerpts.cursor::>(); for anchor in &anchors { if anchor.excerpt_id == ExcerptId::min()