summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src
diff options
context:
space:
mode:
authorgeekvest <126322776+geekvest@users.noreply.github.com>2024-03-03 22:50:19 +0800
committerGitHub <noreply@github.com>2024-03-03 14:50:19 +0000
commit098ef5acbb91723c4c806b23e5e5d85523fc88aa (patch)
tree164809b1b3d23bdd5ef5b867b6a22673919648c0 /crates/typst-syntax/src
parent4f1d97253d32bc486cde25ee8d1149acdee4fb5f (diff)
Fix some comments (#3541)
Signed-off-by: geekvest <cuimoman@sohu.com>
Diffstat (limited to 'crates/typst-syntax/src')
-rw-r--r--crates/typst-syntax/src/ast.rs2
-rw-r--r--crates/typst-syntax/src/parser.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs
index fc689a68..840024f7 100644
--- a/crates/typst-syntax/src/ast.rs
+++ b/crates/typst-syntax/src/ast.rs
@@ -1271,7 +1271,7 @@ node! {
}
impl<'a> Spread<'a> {
- /// The spreaded expression.
+ /// The spread expression.
///
/// This should only be accessed if this `Spread` is contained in an
/// `ArrayItem`, `DictItem`, or `Arg`.
diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs
index 4785b8a1..e5ecbc11 100644
--- a/crates/typst-syntax/src/parser.rs
+++ b/crates/typst-syntax/src/parser.rs
@@ -1161,7 +1161,7 @@ fn array_or_dict_item(p: &mut Parser, state: &mut GroupState) {
let m = p.marker();
if p.eat_if(SyntaxKind::Dots) {
- // Parses a spreaded item: `..item`.
+ // Parses a spread item: `..item`.
code_expr(p);
p.wrap(m, SyntaxKind::Spread);
state.maybe_just_parens = false;
@@ -1249,7 +1249,7 @@ fn args(p: &mut Parser) {
fn arg<'s>(p: &mut Parser<'s>, seen: &mut HashSet<&'s str>) {
let m = p.marker();
- // Parses a spreaded argument: `..args`.
+ // Parses a spread argument: `..args`.
if p.eat_if(SyntaxKind::Dots) {
code_expr(p);
p.wrap(m, SyntaxKind::Spread);