diff options
author | Deokjin Kim <deokjin81.kim@gmail.com> | 2023-03-11 00:07:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 15:07:55 +0000 |
commit | b0d31bb85490fdc9cdd4c8704d2e27d54e67d2b6 (patch) | |
tree | 4226205a52314ec7962ba1f7764528361f38792b /doc/api/net.md | |
parent | 72e971ee2e7d1c974d69825c40bc9f29cdb4b1f9 (diff) | |
download | node-new-b0d31bb85490fdc9cdd4c8704d2e27d54e67d2b6.tar.gz |
net: fix setting of value in 'setDefaultAutoSelectFamilyAttemptTimeout'
Document describes that the value have to be 10 if passed value to
`setDefaultAutoSelectFamilyAttemptTimeout` is less than 10.
So need to use 10 for 'if' statement and fix typo in document.
Refs: https://github.com/nodejs/node/blob/main/doc/api/net.md#netsetdefaultautoselectfamilyattempttimeoutvalue
PR-URL: https://github.com/nodejs/node/pull/47012
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r-- | doc/api/net.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index b752129dd5..2b67e85a32 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1661,7 +1661,7 @@ added: REPLACEME Sets the default value of the `autoSelectFamilyAttemptTimeout` option of [`socket.connect(options)`][]. * `value` {number} The new default value, which must be a positive number. If the number is less than `10`, - the value `10` is used insted The initial default value is `250`. + the value `10` is used instead. The initial default value is `250`. ## `net.isIP(input)` |