Skip to content

Commit

Permalink
Updates comment to reflect codebase (facebook#3576)
Browse files Browse the repository at this point in the history
the code got updated from `detect()` to `choosePort` while the comment did not.
  • Loading branch information
rahulcs authored and Pavel Zhytko committed Jul 10, 2018
1 parent 1e8ca42 commit aeafc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
const HOST = process.env.HOST || '0.0.0.0';

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

0 comments on commit aeafc4a

Please sign in to comment.