kodecocodes / swift-algorithm-club

Algorithms and data structures in Swift, with explanations!
MIT License
28.85k stars 5k forks source link

legacy variables names #988

Closed jcksnvllxr80 closed 2 years ago

jcksnvllxr80 commented 3 years ago

correct legacy variable name x to be index so reader isnt wasting time scratching their head and can focus more on understanding the insertion sort algorithm.

jcksnvllxr80 commented 3 years ago

second commit changes index to currentIndex.