Skip to content

Commit

Permalink
refactor: rename variable i to index
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd authored and ftomassetti committed Feb 16, 2024
1 parent 90f49dc commit 8b89e36
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ public class IntervalSet : IntSet {
}

val n = _intervals.size
var i = 0
var index = 0

while (i < n) {
val I = _intervals[i++]
while (index < n) {
val I = _intervals[index++]
val a = I.a
val b = I.b

Expand Down Expand Up @@ -516,7 +516,7 @@ public class IntervalSet : IntSet {
}
}

if (i < n) {
if (index < n) {
buf.append(", ")
}
}
Expand All @@ -540,10 +540,10 @@ public class IntervalSet : IntSet {
}

val n = _intervals.size
var i = 0
var index = 0

while (i < n) {
val I = _intervals[i++]
while (index < n) {
val I = _intervals[index++]
val a = I.a
val b = I.b

Expand All @@ -559,7 +559,7 @@ public class IntervalSet : IntSet {
}
}

if (i < n) {
if (index < n) {
buf.append(", ")
}
}
Expand Down

0 comments on commit 8b89e36

Please sign in to comment.