Skip to content

Commit 4a2d98e

Browse files
committed
more doc fixes.
1 parent a986809 commit 4a2d98e

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/graphics/bresenham-line-drawing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @param {number} y1 The second coordinate of the beginning of the line
99
* @param {number} x2 The first coordinate of the end of the line
1010
* @param {number} y2 The second coordinate of the end of the line
11+
* @param {function} draw Optional custom drawing function.
1112
*/
1213
function drawLine(x1, y1, x2, y2, draw) {
1314
drawPoint = draw || drawPoint;

src/graphs/shortest-path/dijkstra.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
*
4040
* @private
4141
* @param {number} src Start node.
42+
* @param {Array} graph A distance matrix of the graph.
4243
*/
4344
function init(src, graph) {
4445
var currentTemp;

src/graphs/shortest-path/floyd-warshall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* Initialize the distance matrix.
1313
*
1414
* @private
15-
* @param {array} graph Distance matrix of the array.
16-
* @return {array} Distance matrix used for the algorithm.
15+
* @param {Array} graph Distance matrix of the array.
16+
* @return {Array} Distance matrix used for the algorithm.
1717
*/
1818
function init(graph) {
1919
var dist = [];

src/others/hanoi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*
2626
* @param {Number} count Count of the plates/stones.
2727
* @param {String|Number} source Identifier of the 1st peg.
28-
* @param {String|Number} source Identifier of the 2nd peg.
29-
* @param {String|Number} source Identifier of the 3rd peg.
28+
* @param {String|Number} intermediate Identifier of the 2nd peg.
29+
* @param {String|Number} goal Identifier of the 3rd peg.
3030
* @return Array which contains all the moves required
3131
* in order to place all the plates onto the last peg.
3232
*/

src/searching/quickselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @param {Array} arr Input array.
1919
* @param {Number} n A number of an element.
2020
* @param {Number} lo Low index.
21-
* @param {Number} lo High index.
21+
* @param {Number} hi High index.
2222
* @return Returns n-th smallest element.
2323
*/
2424
function quickselect(arr, n, lo, hi) {

src/searching/recursive-binarysearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Recursive version of binary search.
29-
* Searchs for specific element in a given array using
29+
* Searches for specific element in a given array using
3030
* the binary search algorithm.<br><br>
3131
* Time complexity: O(log N).
3232
*

0 commit comments

Comments
 (0)