[gobject-introspection] examples: fix typo in error message



commit 5913e31256f0560cf9937a1496039fae1e141b03
Author: Reuben Thomas <rrt sc3d org>
Date:   Tue Apr 12 10:06:46 2022 +0100

    examples: fix typo in error message
    
    In glib-print.c example, make the error message refer to the same function
    (GLib.assertion_message) as the code.

 examples/girepository/glib-print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/examples/girepository/glib-print.c b/examples/girepository/glib-print.c
index 595ae48b..62b568bf 100644
--- a/examples/girepository/glib-print.c
+++ b/examples/girepository/glib-print.c
@@ -20,7 +20,7 @@ main (void)
   base_info = g_irepository_find_by_name (repository, "GLib", "assertion_message");
   if (!base_info)
     {
-      g_error ("ERROR: %s\n", "Could not find GLib.warn_message");
+      g_error ("ERROR: %s\n", "Could not find GLib.assertion_message");
       return 1;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]