mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01: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;
|
||||
* int saved_errno;
|
||||
*
|
||||
* g_return_val_if_fail (error == NULL || *error == NULL, -1);
|
||||
*
|
||||
* fd = open ("file.txt", O_RDONLY);
|
||||
* saved_errno = errno;
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user