Renamed to byte_range and changed Range generics [skip ci]

This commit is contained in:
Michael van Straten
2023-03-11 12:14:06 +01:00
parent 3a3ecbfae6
commit c67ae04aca
4 changed files with 6 additions and 7 deletions

View File

@@ -490,8 +490,8 @@ impl Span {
/// Returns the span's byte position range in the source file.
#[unstable(feature = "proc_macro_span", issue = "54725")]
pub fn position(&self) -> Range<u32> {
self.0.position()
pub fn byte_range(&self) -> Range<usize> {
self.0.byte_range()
}
/// Gets the starting line/column in the source file for this span.