diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-04-08 06:21:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-08 10:21:06 +0000 |
| commit | 9289d9334bbea9bb401b3b7ec1383be5dde02e82 (patch) | |
| tree | d5ad2acf7deda4d210578d4c34da13a6141a893b /crates/typst-syntax/src/node.rs | |
| parent | 33d620ed2ed7066028c0f1abdac10c8d7b9bf953 (diff) | |
SyntaxKind::Eof => SyntaxKind::End to better express its usage (#3872)
Diffstat (limited to 'crates/typst-syntax/src/node.rs')
| -rw-r--r-- | crates/typst-syntax/src/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/node.rs b/crates/typst-syntax/src/node.rs index d047e751..b9efde6e 100644 --- a/crates/typst-syntax/src/node.rs +++ b/crates/typst-syntax/src/node.rs @@ -303,7 +303,7 @@ impl SyntaxNode { /// In contrast to `default()`, this is a const fn. pub(super) const fn arbitrary() -> Self { Self(Repr::Leaf(LeafNode { - kind: SyntaxKind::Eof, + kind: SyntaxKind::End, text: EcoString::new(), span: Span::detached(), })) |
