Skip to content

Commit

Permalink
src: add missing length argument to send comment
Browse files Browse the repository at this point in the history
The list.length argument is missing from the comment and just adding
this for clarity.

PR-URL: #8816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
  • Loading branch information
danbev authored and Fishrock123 committed Oct 11, 2016
1 parent fc42825 commit 86b9db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udp_wrap.cc
Expand Up @@ -255,7 +255,7 @@ void UDPWrap::DoSend(const FunctionCallbackInfo<Value>& args, int family) {
args.Holder(),
args.GetReturnValue().Set(UV_EBADF));

// send(req, list, port, address, hasCallback)
// send(req, list, list.length, port, address, hasCallback)
CHECK(args[0]->IsObject());
CHECK(args[1]->IsArray());
CHECK(args[2]->IsUint32());
Expand Down

0 comments on commit 86b9db6

Please sign in to comment.