mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix variable name (#4042)
This commit is contained in:
parent
1247c6d8e1
commit
2c678e8228
@ -258,7 +258,7 @@ impl Introspector {
|
||||
pub fn position(&self, location: Location) -> Position {
|
||||
self.elems
|
||||
.get(&location)
|
||||
.map(|(_, loc)| *loc)
|
||||
.map(|&(_, pos)| pos)
|
||||
.unwrap_or(Position { page: NonZeroUsize::ONE, point: Point::zero() })
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user