From 43f40c60fda1a4d81b503aa0898cde4455931f90 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 17 Sep 2025 13:02:13 -0400 Subject: [PATCH] rope: Fix spelling of `peek_with_bitmaps` (#38341) This PR fixes the spelling of the `peek_with_bitmaps` method. Release Notes: - N/A --- crates/rope/src/rope.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rope/src/rope.rs b/crates/rope/src/rope.rs index 8bcaef20ca3bd5c79413791764a313fd1e6b75ac..3f6addb7c2394503098a213f4139fedc9757ba86 100644 --- a/crates/rope/src/rope.rs +++ b/crates/rope/src/rope.rs @@ -767,7 +767,7 @@ impl<'a> Chunks<'a> { } /// Returns bitmaps that represent character positions and tab positions - pub fn peak_with_bitmaps(&self) -> Option> { + pub fn peek_with_bitmaps(&self) -> Option> { if !self.offset_is_valid() { return None; } @@ -898,7 +898,7 @@ impl<'a> Iterator for ChunkWithBitmaps<'a> { type Item = ChunkBitmaps<'a>; fn next(&mut self) -> Option { - let chunk_bitmaps = self.0.peak_with_bitmaps()?; + let chunk_bitmaps = self.0.peek_with_bitmaps()?; if self.0.reversed { self.0.offset -= chunk_bitmaps.text.len(); if self.0.offset <= *self.0.chunks.start() {