diff options
Diffstat (limited to 'src/syntax/ast.rs')
| -rw-r--r-- | src/syntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index a24b9fa2..64f54e37 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -716,7 +716,7 @@ node! { impl MathDelimited { /// The opening delimiter. - pub fn open(&self) -> MathAtom { + pub fn open(&self) -> Expr { self.0.cast_first_match().unwrap_or_default() } @@ -726,7 +726,7 @@ impl MathDelimited { } /// The closing delimiter. - pub fn close(&self) -> MathAtom { + pub fn close(&self) -> Expr { self.0.cast_last_match().unwrap_or_default() } } |
