mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-15 18:05:03 +01:00
fix span error
This commit is contained in:
parent
87790d4049
commit
53c2cdb085
4 changed files with 15 additions and 6 deletions
|
|
@ -14,7 +14,7 @@ mod span {
|
|||
}
|
||||
|
||||
impl Span {
|
||||
pub fn new(start: usize, len: usize) -> Self {
|
||||
pub fn start_len(start: usize, len: usize) -> Self {
|
||||
Self {
|
||||
start,
|
||||
end: start + len,
|
||||
|
|
@ -22,7 +22,7 @@ mod span {
|
|||
}
|
||||
|
||||
pub fn start_end(start: usize, end: usize) -> Self {
|
||||
Self::new(start, end)
|
||||
Self { start, end }
|
||||
}
|
||||
|
||||
pub fn single(start: usize) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue