Skip to content

Commit fac67d6

Browse files
authored
docs: fix simple typo, occured -> occurred (keon#869)
There is a small typo in algorithms/sort/heap_sort.py. Should read `occurred` rather than `occured`.
1 parent e63bc4d commit fac67d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algorithms/sort/heap_sort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def max_heapify(arr, end, simulation, iteration):
3838
if simulation:
3939
iteration = iteration + 1
4040
print("iteration",iteration,":",*arr)
41-
# If no swap occured, no need to keep iterating
41+
# If no swap occurred, no need to keep iterating
4242
else:
4343
break
4444
arr[0], arr[end] = arr[end], arr[0]
@@ -86,7 +86,7 @@ def min_heapify(arr, start, simulation, iteration):
8686
if simulation:
8787
iteration = iteration + 1
8888
print("iteration",iteration,":",*arr)
89-
# If no swap occured, no need to keep iterating
89+
# If no swap occurred, no need to keep iterating
9090
else:
9191
break
9292
return iteration

0 commit comments

Comments
 (0)