diff --git a/HeapSort/C++/HeapSort.cpp b/HeapSort/C++/HeapSort.cpp index 366415938..7ae4d1cd2 100644 --- a/HeapSort/C++/HeapSort.cpp +++ b/HeapSort/C++/HeapSort.cpp @@ -23,7 +23,7 @@ void heapify(int arr[], int n, int i) { swap(arr[i], arr[largest]); - // Recursively heapify the affected sub-tree + // Recursively heapify(arr, n, largest); } }