mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-11 04:49:15 +03:00
[span] Update and clarify some comments.
This commit is contained in:
parent
7592de6dc5
commit
f249dee8f7
@ -26,10 +26,10 @@ use crate::symbol::with_session_globals;
|
||||
/// This is used in many spots throughout the rest of the Leo crates.
|
||||
#[derive(Copy, Clone, Debug, Default, Deserialize, Eq, Hash, PartialEq, Serialize)]
|
||||
pub struct Span {
|
||||
/// The start position of the span.
|
||||
/// The start (low) position of the span, inclusive.
|
||||
pub lo: BytePos,
|
||||
/// The end position of the span.
|
||||
/// The length is simply `end - start`.
|
||||
/// The end (high) position of the span, exclusive.
|
||||
/// The length is simply `hi - lo`.
|
||||
pub hi: BytePos,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user