summaryrefslogtreecommitdiff
path: root/src/source.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs3
1 files changed, 2 insertions, 1 deletions
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<usize> {