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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ilkka Myller <[email protected]>
  • 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
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 86b9db6

Please sign in to comment.