Parse optional let type.
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ impl Span {
|
||||
self.end - self.start
|
||||
}
|
||||
|
||||
pub fn extend(&self, other: &Span) -> Span {
|
||||
pub fn to(&self, other: &Span) -> Span {
|
||||
Span::new(self.start, other.end)
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,6 @@ impl<T> Spanned<T> {
|
||||
}
|
||||
|
||||
pub fn span_to(&self, other: &Spanned<T>) -> Span {
|
||||
self.span.extend(&other.span)
|
||||
self.span.to(&other.span)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user