diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-08-29 17:35:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-08-29 17:35:35 +0200 |
| commit | a71a2057f286677b5bf2e064fea05024aeca0dd2 (patch) | |
| tree | 716d85481aca232abdb6c2e01a0a545c003f4c6b /tests/typ/meta/state.typ | |
| parent | 7bdf1f57b09ea605045254013a8200373451baf0 (diff) | |
More type safety for spans
Diffstat (limited to 'tests/typ/meta/state.typ')
| -rw-r--r-- | tests/typ/meta/state.typ | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/typ/meta/state.typ b/tests/typ/meta/state.typ index 1c329a95..86dc70a5 100644 --- a/tests/typ/meta/state.typ +++ b/tests/typ/meta/state.typ @@ -49,10 +49,8 @@ Was: #locate(location => { --- // Make sure that a warning is produced if the layout fails to converge. -// Warning: -3:1-6:1 layout did not converge within 5 attempts -// Hint: -3:1-6:1 check if any states or queries are updating themselves -#let s = state("x", 1) -#locate(loc => { - s.update(s.final(loc) + 1) -}) +// Warning: layout did not converge within 5 attempts +// Hint: check if any states or queries are updating themselves +#let s = state("s", 1) +#locate(loc => s.update(s.final(loc) + 1)) #s.display() |
