external call

This commit is contained in:
Fernando Herrera
2021-09-12 16:34:43 +01:00
parent 9c98783917
commit 8f07f40f22
2 changed files with 33 additions and 2 deletions

View File

@ -137,7 +137,7 @@ impl EngineState {
output
}
pub fn get_span_contents(&self, span: Span) -> &[u8] {
pub fn get_span_contents(&self, span: &Span) -> &[u8] {
&self.file_contents[span.start..span.end]
}