Skip to content

Commit 9d27a9f

Browse files
committed
Few mistakes in the JSDoc are corrected
1 parent e932c32 commit 9d27a9f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/sorting/heapsort.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var heapSort = (function () {
1212
*
1313
* @private
1414
* @param {array} array Array
15-
* @param {number} index Index of the element which palce in the max heap should be find
15+
* @param {number} index Index of the element which palce in the max heap should be found.
1616
*/
1717
function heapify(array, index, heapSize) {
1818
var left = 2 * index + 1,
@@ -34,7 +34,7 @@ var heapSort = (function () {
3434
}
3535

3636
/**
37-
* Builds max heap from a given array.
37+
* Builds max heap from given array.
3838
*
3939
* @private
4040
* @param {array} array Array which should be turned into max heap
@@ -48,7 +48,7 @@ var heapSort = (function () {
4848
}
4949

5050
/**
51-
* Heapsort. Turns the input array into a max heap and after that sorts it.
51+
* Heapsort. Turns the input array into max heap and after that sorts it.
5252
*
5353
* @public
5454
* @param {array} array Input array

0 commit comments

Comments
 (0)