rope: Fix spelling of peek_with_bitmaps (#38341)

This PR fixes the spelling of the `peek_with_bitmaps` method.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-09-17 17:02:13 +00:00
committed by GitHub
parent 824f695383
commit 43f40c60fd
+2 -2
View File
@@ -767,7 +767,7 @@ impl<'a> Chunks<'a> {
}
/// Returns bitmaps that represent character positions and tab positions
pub fn peak_with_bitmaps(&self) -> Option<ChunkBitmaps<'a>> {
pub fn peek_with_bitmaps(&self) -> Option<ChunkBitmaps<'a>> {
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<Self::Item> {
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() {