mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
gerror: Add a missing precondition assertion in documentation
Inspired by !673. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
b72b4e2d24
commit
321f914071
@ -126,6 +126,8 @@
|
|||||||
* gint fd;
|
* gint fd;
|
||||||
* int saved_errno;
|
* int saved_errno;
|
||||||
*
|
*
|
||||||
|
* g_return_val_if_fail (error == NULL || *error == NULL, -1);
|
||||||
|
*
|
||||||
* fd = open ("file.txt", O_RDONLY);
|
* fd = open ("file.txt", O_RDONLY);
|
||||||
* saved_errno = errno;
|
* saved_errno = errno;
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user