diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:20:19 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:20:19 +0100 |
| commit | a59b9fff93f708d5a35d2bf61c3b21efee71b7e9 (patch) | |
| tree | e7e9ca1d969f297fd5323933b42dac8ebfe37371 /src/syntax/ast.rs | |
| parent | 9d962c5c40da12207433a6e88aa34f11d036af37 (diff) | |
Scale shorthand brackets
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() } } |
