diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-30 15:13:28 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-30 16:45:41 +0100 |
| commit | f70cea508cd30fa40770ea989fe2a19e715a357b (patch) | |
| tree | 731bb96b375dc8fd0f7e5a2a7e1d1fe5cb2a600e /tests/typ/basics/enum.typ | |
| parent | fe1f4400693690b68db5a7ec0976ba998624a740 (diff) | |
Remove index syntax in favor of accessor methods
Diffstat (limited to 'tests/typ/basics/enum.typ')
| -rw-r--r-- | tests/typ/basics/enum.typ | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/typ/basics/enum.typ b/tests/typ/basics/enum.typ index e651ca31..c1ce17b7 100644 --- a/tests/typ/basics/enum.typ +++ b/tests/typ/basics/enum.typ @@ -39,11 +39,14 @@ --- // Test numbering with closure. #enum( - start: 4, - spacing: 0.65em - 3pt, - tight: false, - numbering: n => text(fill: (red, green, blue)(mod(n, 3)), numbering("A", n)), - [Red], [Green], [Blue], + start: 4, + spacing: 0.65em - 3pt, + tight: false, + numbering: n => text( + fill: (red, green, blue).at(mod(n, 3)), + numbering("A", n), + ), + [Red], [Green], [Blue], ) --- |
