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 jasnell committed Sep 30, 2016
1 parent b838e5f commit 6e62b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udp_wrap.cc
Original file line number Diff line number Diff line change
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 6e62b71

Please sign in to comment.