Skip to content

Commit 564a7d5

Browse files
committed
Changed right to left
1 parent c521136 commit 564a7d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ordered Set/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The next function is the `findIndex` function which takes in an item of type `T`
116116

117117
j = mid
118118

119-
// check right side of mid
119+
// check left side of mid
120120
while j > 0 && !(internalSet[j] < internalSet[j - 1]) {
121121
if internalSet[j - 1] == item {
122122
return j - 1
@@ -146,7 +146,7 @@ The code to check the left and right side are similar so we will only look at th
146146
``` swift
147147
j = mid
148148

149-
// check right side of mid
149+
// check left side of mid
150150
while j > 0 && !(internalSet[j] < internalSet[j - 1]) {
151151
if internalSet[j - 1] == item {
152152
return j - 1

0 commit comments

Comments
 (0)