summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-01-30 04:30:34 -0500
committerGitHub <noreply@github.com>2024-01-30 09:30:34 +0000
commita6037293367db42c7242cab9dec14662402ef061 (patch)
treee20ab880795ee9f6d09a9db92a43cf664a0cd3b9 /crates/typst-syntax/src
parenta434cbb64eb96fd822e6c4a669cfa208c7dd5712 (diff)
Remove an unnecessary clone in loop evaluation (#3297)
Diffstat (limited to 'crates/typst-syntax/src')
-rw-r--r--crates/typst-syntax/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs
index df865906..6f4b52f0 100644
--- a/crates/typst-syntax/src/ast.rs
+++ b/crates/typst-syntax/src/ast.rs
@@ -1967,7 +1967,7 @@ impl<'a> ForLoop<'a> {
}
/// The expression to iterate over.
- pub fn iter(self) -> Expr<'a> {
+ pub fn iterable(self) -> Expr<'a> {
self.0
.children()
.skip_while(|&c| c.kind() != SyntaxKind::In)