Skip to content

Commit 9dc16c9

Browse files
authored
Merge pull request #2069 from dtolnay/prevspan
Make Cursor::prev_span public
2 parents 1db76b7 + bfa1ebf commit 9dc16c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl<'a> Cursor<'a> {
364364

365365
/// Returns the `Span` of the token immediately prior to the position of
366366
/// this cursor, or of the current token if there is no previous one.
367-
pub(crate) fn prev_span(mut self) -> Span {
367+
pub fn prev_span(mut self) -> Span {
368368
if start_of_buffer(self) < self.ptr {
369369
self.ptr = unsafe { self.ptr.sub(1) };
370370
}

0 commit comments

Comments
 (0)