diff --git a/docs/_SOURCE/0.7.x/fio.md b/docs/_SOURCE/0.7.x/fio.md index 75c5d632..86f33031 100644 --- a/docs/_SOURCE/0.7.x/fio.md +++ b/docs/_SOURCE/0.7.x/fio.md @@ -432,14 +432,14 @@ The following arguments are supported: // callback example: void on_connect(intptr_t uuid, void *udata); -* `on_connect`: +* `on_fail`: This callback will be called when a socket fails to connect. It's often a good place for cleanup. The callback should accept the attempted connection's uuid (might be -1) and a void pointer (the optional `udata` pointer one passed to `fio_connect`) // callback example: - void on_connect(intptr_t uuid, void *udata); + void on_fail(intptr_t uuid, void *udata); * `udata`: diff --git a/docs/_SOURCE/0.8.x/fio.md b/docs/_SOURCE/0.8.x/fio.md index f16dd826..3c897805 100644 --- a/docs/_SOURCE/0.8.x/fio.md +++ b/docs/_SOURCE/0.8.x/fio.md @@ -461,14 +461,14 @@ The following arguments are supported: // callback example: void on_connect(intptr_t uuid, void *udata); -* `on_connect`: +* `on_fail`: This callback will be called when a socket fails to connect. It's often a good place for cleanup. The callback should accept the attempted connection's uuid (might be -1) and a void pointer (the optional `udata` pointer one passed to `fio_connect`) // callback example: - void on_connect(intptr_t uuid, void *udata); + void on_fail(intptr_t uuid, void *udata); * `udata`: