mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-07 00:06:24 +03:00
📝 Improve assertion comment
This commit is contained in:
parent
a284e7140c
commit
5ebd24d528
@ -2788,7 +2788,8 @@ mod tests {
|
|||||||
.map(|a| a.1)
|
.map(|a| a.1)
|
||||||
.collect();
|
.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::<Option<&ExcerptId>>();
|
let mut cursor = multibuffer.excerpts.cursor::<Option<&ExcerptId>>();
|
||||||
for anchor in &anchors {
|
for anchor in &anchors {
|
||||||
if anchor.excerpt_id == ExcerptId::min()
|
if anchor.excerpt_id == ExcerptId::min()
|
||||||
|
Loading…
Reference in New Issue
Block a user