aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/gen_udp.erl
diff options
context:
space:
mode:
authorFilipe David Manana <[email protected]>2011-06-19 21:16:45 +0100
committerFilipe David Manana <[email protected]>2011-08-27 14:10:06 -0700
commitaf8938714416c0b1393a0830fdc6e8a5ab4be87c (patch)
tree52da30ed54ab3831e0e051007f0bd89047236b5d /lib/kernel/src/gen_udp.erl
parent9a52e239698ae62cddbc0d780502c72458867b6f (diff)
downloadotp-af8938714416c0b1393a0830fdc6e8a5ab4be87c.tar.gz
otp-af8938714416c0b1393a0830fdc6e8a5ab4be87c.tar.bz2
otp-af8938714416c0b1393a0830fdc6e8a5ab4be87c.zip
Fix type of Packet arg of gen_tcp:send/2 and gen_udp:send/4
The type is marked as a binary() or a string() but in practice it can be an iodata(). The test suite was updated to confirm the gen_tcp/2 and gen_udp:send/4 functions accept iodata() (iolists) packets.
Diffstat (limited to 'lib/kernel/src/gen_udp.erl')
-rw-r--r--lib/kernel/src/gen_udp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/gen_udp.erl b/lib/kernel/src/gen_udp.erl
index 554f4ece4a..8688799ae9 100644
--- a/lib/kernel/src/gen_udp.erl
+++ b/lib/kernel/src/gen_udp.erl
@@ -109,7 +109,7 @@ close(S) ->
Socket :: socket(),
Address :: inet:ip_address() | inet:hostname(),
Port :: inet:port_number(),
- Packet :: string() | binary(),
+ Packet :: iodata(),
Reason :: not_owner | inet:posix().
send(S, Address, Port, Packet) when is_port(S) ->