aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-06-28 11:19:47 +0200
committerSverker Eriksson <[email protected]>2011-06-28 11:19:47 +0200
commit16155c5c3eb362bad07d23f0d8be459d6552515c (patch)
tree7b27eba414ba1ac869797921fa76e17b6b254a84 /lib
parent1049243404cc52cad5ce1f1d2d37383a2ca06160 (diff)
downloadotp-16155c5c3eb362bad07d23f0d8be459d6552515c.tar.gz
otp-16155c5c3eb362bad07d23f0d8be459d6552515c.tar.bz2
otp-16155c5c3eb362bad07d23f0d8be459d6552515c.zip
Fix small error in example code of gen_sctp documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/doc/src/gen_sctp.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml
index 5ceb82ae41..b761b6bd83 100644
--- a/lib/kernel/doc/src/gen_sctp.xml
+++ b/lib/kernel/doc/src/gen_sctp.xml
@@ -990,7 +990,7 @@
server(IP, Port) when is_tuple(IP) orelse IP == any orelse IP == loopback,
is_integer(Port) -&gt;
- {ok,S} = gen_sctp:open([{ip,IP},{port,Port}],[{recbuf,65536}]),
+ {ok,S} = gen_sctp:open(Port, [{recbuf,65536}, {ip,IP}]),
io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),
ok = gen_sctp:listen(S, true),
server_loop(S).