[glib/wip/hadess/fix-gmemory-monitor-example: 13/14] docs: Fix markup that led to unreadable example



commit 460a66cdd8a7b46a03f32211f3183880c9bd42af
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 18 12:27:27 2019 +0100

    docs: Fix markup that led to unreadable example
    
    We used XML to markup when we should have used our own brand of markdown
    instead. This fixes the example being unreadable unless we trimmed the
    XML away from it.

 gio/gioenums.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gio/gioenums.h b/gio/gioenums.h
index 2efd81ed9..6154d430b 100644
--- a/gio/gioenums.h
+++ b/gio/gioenums.h
@@ -1980,13 +1980,10 @@ typedef enum {
  *
  * Note that because new values might be added, it is recommended that applications check
  * #GMemoryMonitorWarningLevel as ranges, for example:
- * <example>
- *  <title>Comparing memory warning levels</title>
- *  <programlisting>
+ * |[<!-- language="C" -->
  * if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW)
  *   drop_caches ();
- *  </programlisting>
- * </example>
+ * ]|
  *
  * Since: 2.64
  */


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