Skip to content

Commit aeafc4a

Browse files
rahulcsPavel Zhytko
authored and
Pavel Zhytko
committed
Updates comment to reflect codebase (facebook#3576)
the code got updated from `detect()` to `choosePort` while the comment did not.
1 parent 1e8ca42 commit aeafc4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
5252
const HOST = process.env.HOST || '0.0.0.0';
5353

5454
// We attempt to use the default port but if it is busy, we offer the user to
55-
// run on a different port. `detect()` Promise resolves to the next free port.
55+
// run on a different port. `choosePort()` Promise resolves to the next free port.
5656
choosePort(HOST, DEFAULT_PORT)
5757
.then(port => {
5858
if (port == null) {

0 commit comments

Comments
 (0)