From 90241219057604a192717f1ca03c30ca8f5c320d Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:20:02 +0100 Subject: [PATCH] Remove mentions that Typst makes specifically 5 attempts to stabilize (#2947) --- crates/typst/src/introspection/query.rs | 4 ++-- crates/typst/src/introspection/state.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/typst/src/introspection/query.rs b/crates/typst/src/introspection/query.rs index 5b70ba512..76c9216fd 100644 --- a/crates/typst/src/introspection/query.rs +++ b/crates/typst/src/introspection/query.rs @@ -72,8 +72,8 @@ use crate::introspection::Location; /// titled `Real`. Thus, `count` is `1` and one `Fake` heading is generated. /// Typst sees that the query's result has changed and processes it again. This /// time, `count` is `2` and two `Fake` headings are generated. This goes on and -/// on. As we can see, the output has five headings. This is because Typst -/// simply gives up after five attempts. +/// on. As we can see, the output has a finite amount of headings. This is +/// because Typst simply gives up after a few attempts. /// /// In general, you should try not to write queries that affect themselves. The /// same words of caution also apply to other introspection features like diff --git a/crates/typst/src/introspection/state.rs b/crates/typst/src/introspection/state.rs index 382d82225..a1d8d6d05 100644 --- a/crates/typst/src/introspection/state.rs +++ b/crates/typst/src/introspection/state.rs @@ -170,8 +170,8 @@ use crate::World; /// a state, the results might never converge. The example below illustrates /// this. We initialize our state with `1` and then update it to its own final /// value plus 1. So it should be `2`, but then its final value is `2`, so it -/// should be `3`, and so on. This example display `4` because Typst simply -/// gives up after a few attempts. +/// should be `3`, and so on. This example displays a finite value because +/// Typst simply gives up after a few attempts. /// /// ```example /// #let s = state("x", 1)