From af10b08cc1bd5ef78c5c048a0cbc83b123f1ffd4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 1 Jun 2022 14:16:12 +0200 Subject: Documentation --- src/source.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/source.rs') diff --git a/src/source.rs b/src/source.rs index 61abcd92..507e4d20 100644 --- a/src/source.rs +++ b/src/source.rs @@ -141,7 +141,8 @@ impl SourceStore { self.sources[id.0 as usize].edit(replace, with) } - /// Map a span that points into this source store to a byte range. + /// Map a span that points into a [file](SourceFile::range) stored in this + /// source store to a byte range. /// /// Panics if the span does not point into this source store. pub fn range(&self, span: Span) -> Range { -- cgit v1.2.3