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