mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-29 09:23:46 +00:00
Add clone comment
This commit is contained in:
parent
a6cf21dcf9
commit
e1aadbc6ef
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,9 @@ use roc_region::all::{Position, Region};
|
|||
use std::fmt;
|
||||
|
||||
/// A position in a source file.
|
||||
#[derive(Clone, Copy)]
|
||||
// NB: [Copy] is explicitly NOT derived to reduce the chance of bugs due to accidentally re-using
|
||||
// parser state.
|
||||
#[derive(Clone)]
|
||||
pub struct State<'a> {
|
||||
/// The raw input bytes from the file.
|
||||
/// Beware: original_bytes[0] always points the the start of the file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue