core: Change location to match "filename:line:col" format

This commit is contained in:
David Mak 2023-11-10 16:02:18 +08:00
parent f020d61cbb
commit e314688617
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pub struct Location {
impl fmt::Display for Location {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}: line {} column {}", self.file.0, self.row, self.column)
write!(f, "{}:{}:{}", self.file.0, self.row, self.column)
}
}