Update range.html.md
Fix the condition in the negative direction range pseudo code
This commit is contained in:
parent
cebbc8b246
commit
511011335a
|
@ -32,7 +32,7 @@ The sequence-building algorithm follows the following pseudocode:
|
||||||
|
|
||||||
```
|
```
|
||||||
let num = start
|
let num = start
|
||||||
while num < limit: (or, for negative step, num >= limit)
|
while num < limit: (or, for negative step, num > limit)
|
||||||
append num to the sequence
|
append num to the sequence
|
||||||
num = num + step
|
num = num + step
|
||||||
return the sequence
|
return the sequence
|
||||||
|
|
Loading…
Reference in New Issue