Commit 0618d674 authored by Michael Catanzaro's avatar Michael Catanzaro

Improve documentation of g_assert_error()

This macro is intended for use in tests, but recommends as an
alternative to use a macro that is not intended for use in tests.
Fix it.
parent 26f78357
Pipeline #46834 passed with stages
in 19 minutes and 8 seconds
......@@ -751,7 +751,7 @@
*
* This can only be used to test for a specific error. If you want to
* test that @err is set, but don't care what it's set to, just use
* `g_assert (err != NULL)`
* `g_assert_nonnull (err)`.
*
* Since: 2.20
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment