Skip to content

Commit 1150660

Browse files
committed
Rename UtilFuncs to Util
1 parent 509de3b commit 1150660

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/js/SudokuSolver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
import { UtilFuncs } from './UtilFuncs.js';
3+
import { Util } from './Util.js';
44

55
// Constants for the simulation speed,
66
// each value represents the how much the solve function will sleep in milliseconds
@@ -50,7 +50,7 @@ class SudokuSolver {
5050
this.sudoku.board[row][col] = possibleNum;
5151

5252
this.renderCell(`cell-${row}-${col}`, possibleNum);
53-
await UtilFuncs.sleep(this.speed);
53+
await Util.sleep(this.speed);
5454

5555
if (await this.solve()) {
5656
return true;

src/js/UtilFuncs.js renamed to src/js/Util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const UtilFuncs = {
3+
const Util = {
44
/**
55
* Sleeps for a certain number of milliseconds
66
* @param {Number} ms Number of milliseconds to sleep
@@ -16,4 +16,4 @@ const UtilFuncs = {
1616
}
1717
}
1818

19-
export { UtilFuncs };
19+
export { Util };

0 commit comments

Comments
 (0)