Fix issue in GSocketAddressEnumerator documentation

We should stop iterating the enumerator the first time it returns NULL,
even if error is set.

Fixes #1982
This commit is contained in:
Michael Catanzaro 2020-06-18 13:30:40 -05:00
parent 8055dd2702
commit 75359441cd

View File

@ -38,7 +38,7 @@
* g_socket_address_enumerator_next_finish() should be used where possible.
*
* Each #GSocketAddressEnumerator can only be enumerated once. Once
* g_socket_address_enumerator_next() has returned %NULL (and no error), further
* g_socket_address_enumerator_next() has returned %NULL, further
* enumeration with that #GSocketAddressEnumerator is not possible, and it can
* be unreffed.
*/