Skip to content

Commit 4998f67

Browse files
committed
Fixed math error in the repeating algorithm.
1 parent 7a0e494 commit 4998f67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

css3-lists/Overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ <h4 id=repeating><span class=secno>10.1.1. </span> repeating</h4>
20532053
<p>In general, if there are <var>length</var> <i>counter symbols</i> and a
20542054
representation is being constructed for the value <var>value</var>, the
20552055
representation is the <a href="#counter-symbol"><i>counter symbol</i></a>
2056-
at index (<var>value</var> mod <var>length</var>) of the list of <a
2056+
at index ( (<var>value</var>-1) mod <var>length</var>) of the list of <a
20572057
href="#counter-symbol"><i>counter symbol</i></a>s (0-indexed).
20582058

20592059
<div class=example>

css3-lists/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ <h4>
12561256
<p>In general, if there are <var>length</var> <i>counter symbols</i> and
12571257
a representation is being constructed for the value <var>value</var>,
12581258
the representation is the <i>counter symbol</i> at index
1259-
(<var>value</var> mod <var>length</var>) of the list of <i>counter symbol</i>s
1259+
( (<var>value</var>-1) mod <var>length</var>) of the list of <i>counter symbol</i>s
12601260
(0-indexed).</p>
12611261

12621262
<div class=example>

0 commit comments

Comments
 (0)