summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-08-02 15:56:42 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-02 15:56:42 +0100
commit97a6111c834773e01f94889a4ea46983ba12551b (patch)
treed283e417174fb5c35cddf9954e6fcd124474362d
parent3b5d3ed2e3cf64c4effc0130784c071643b79cf3 (diff)
downloadglib-97a6111c834773e01f94889a4ea46983ba12551b.tar.gz
docs: Enable syntax highlighting on code examples
-rw-r--r--glib/gvariant.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/glib/gvariant.h b/glib/gvariant.h
index c0587a887..11c74d596 100644
--- a/glib/gvariant.h
+++ b/glib/gvariant.h
@@ -345,7 +345,9 @@ GQuark g_variant_parse_error_quark (void);
* A stack-allocated #GVariantBuilder must be initialized if it is
* used together with g_auto() to avoid warnings or crashes if
* function returns before g_variant_builder_init() is called on the
- * builder. This macro can be used as initializer instead of an
+ * builder.
+ *
+ * This macro can be used as initializer instead of an
* explicit zeroing a variable when declaring it and a following
* g_variant_builder_init(), but it cannot be assigned to a variable.
*
@@ -354,7 +356,7 @@ GQuark g_variant_parse_error_quark (void);
* the G_VARIANT_BUILDER_INIT() call, but rather in functions that
* make sure that #GVariantBuilder is valid.
*
- * |[
+ * |[<!-- language="C" -->
* g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_BYTESTRING);
* ]|
*
@@ -455,6 +457,7 @@ struct _GVariantDict {
* A stack-allocated #GVariantDict must be initialized if it is used
* together with g_auto() to avoid warnings or crashes if function
* returns before g_variant_dict_init() is called on the builder.
+ *
* This macro can be used as initializer instead of an explicit
* zeroing a variable when declaring it and a following
* g_variant_dict_init(), but it cannot be assigned to a variable.
@@ -468,7 +471,7 @@ struct _GVariantDict {
* safely with a different @asv right after the variable was
* initialized with G_VARIANT_DICT_INIT().
*
- * |[
+ * |[<!-- language="C" -->
* g_autoptr(GVariant) variant = get_asv_variant ();
* g_auto(GVariantDict) dict = G_VARIANT_DICT_INIT (variant);
* ]|