diff --git a/lib/erl_interface/doc/src/ei_users_guide.xml b/lib/erl_interface/doc/src/ei_users_guide.xml index 02279945716d..78f1967f2100 100644 --- a/lib/erl_interface/doc/src/ei_users_guide.xml +++ b/lib/erl_interface/doc/src/ei_users_guide.xml @@ -347,7 +347,7 @@ ei_x_encode_tuple_header(&buf, 2); ei_x_encode_pid(&buf, ei_self(ec)); ei_x_encode_atom(&buf, "Hello world"); -ei_reg_send(&ec,fd,"my_server",buf,buf.index);]]> +ei_reg_send(&ec, fd, "my_server", buf.buff, buf.index);]]>

The first element of the tuple that is sent is your own pid. This enables my_server to reply.