There was an error while loading. Please reload this page.
2 parents 1db76b7 + bfa1ebf commit 9dc16c9Copy full SHA for 9dc16c9
1 file changed
src/buffer.rs
@@ -364,7 +364,7 @@ impl<'a> Cursor<'a> {
364
365
/// Returns the `Span` of the token immediately prior to the position of
366
/// this cursor, or of the current token if there is no previous one.
367
- pub(crate) fn prev_span(mut self) -> Span {
+ pub fn prev_span(mut self) -> Span {
368
if start_of_buffer(self) < self.ptr {
369
self.ptr = unsafe { self.ptr.sub(1) };
370
}
0 commit comments