Skip to content

Commit

Permalink
calc.mod -> calc.rem (#100)
Browse files Browse the repository at this point in the history
Typst doesn't provide a `mod` function, so use `rem` here
  • Loading branch information
ntjess authored Dec 20, 2023
1 parent e19b3b9 commit 155f116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Another example (summing columns):
#gridx(
columns: 3,
rows: 6,
fill: (col, row) => (blue, red, green).at(calc.mod(row + col - 1, 3)),
fill: (col, row) => (blue, red, green).at(calc.rem(row + col - 1, 3)),
map-cols: (col, cells) => {
let last = cells.last()
last.content = [
Expand Down

0 comments on commit 155f116

Please sign in to comment.