fix minor typo in zmq_ctx_get doc example

This commit is contained in:
Dylan Cali 2013-10-02 02:59:44 -05:00 committed by Pieter Hintjens
parent a69fa9ecde
commit 9da52ddf59

View File

@ -54,7 +54,7 @@ EXAMPLE
.Setting a limit on the number of sockets
----
void *context = zmq_ctx_new ();
zmq_ctx_get (context, ZMQ_MAX_SOCKETS, 256);
zmq_ctx_set (context, ZMQ_MAX_SOCKETS, 256);
int max_sockets = zmq_ctx_get (context, ZMQ_MAX_SOCKETS);
assert (max_sockets == 256);
----