mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
Mention that Cursor is based on rustc's implementation. (#12109)
This commit is contained in:
@@ -5,6 +5,8 @@ use ruff_text_size::{TextLen, TextSize};
|
||||
pub const EOF_CHAR: char = '\0';
|
||||
|
||||
/// A [`Cursor`] over a string.
|
||||
///
|
||||
/// Based on [`rustc`'s `Cursor`](https://github.com/rust-lang/rust/blob/d1b7355d3d7b4ead564dbecb1d240fcc74fff21b/compiler/rustc_lexer/src/cursor.rs)
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Cursor<'a> {
|
||||
chars: Chars<'a>,
|
||||
|
||||
Reference in New Issue
Block a user