summaryrefslogtreecommitdiff
path: root/crates/typst-ide/src/tests.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-06-20 14:32:04 +0200
committerGitHub <noreply@github.com>2025-06-20 12:32:04 +0000
commitf364b3c3239261e98da4c28c53463b751addfee7 (patch)
treed2b2538cdfc53a8f2a1a002e7c723512328baf47 /crates/typst-ide/src/tests.rs
parentf1c761e88ba50c5560360062c03d7d04f3925c49 (diff)
Fix param autocompletion false positive (#6475)
Diffstat (limited to 'crates/typst-ide/src/tests.rs')
-rw-r--r--crates/typst-ide/src/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-ide/src/tests.rs b/crates/typst-ide/src/tests.rs
index 1176e460..5edc05f1 100644
--- a/crates/typst-ide/src/tests.rs
+++ b/crates/typst-ide/src/tests.rs
@@ -202,7 +202,8 @@ impl WorldLike for &str {
}
}
-/// Specifies a position in a file for a test.
+/// Specifies a position in a file for a test. Negative numbers index from the
+/// back. `-1` is at the very back.
pub trait FilePos {
fn resolve(self, world: &TestWorld) -> (Source, usize);
}