diff options
Diffstat (limited to 'crates/typst-syntax/src/ast.rs')
| -rw-r--r-- | crates/typst-syntax/src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs index 26a26160..8f8eaac4 100644 --- a/crates/typst-syntax/src/ast.rs +++ b/crates/typst-syntax/src/ast.rs @@ -695,7 +695,7 @@ impl<'a> Heading<'a> { } /// The section depth (number of equals signs). - pub fn level(self) -> NonZeroUsize { + pub fn depth(self) -> NonZeroUsize { self.0 .children() .find(|node| node.kind() == SyntaxKind::HeadingMarker) |
