gvariant: Clarify type and format strings in the docs
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 27 May 2014 14:50:00 +0000 (15:50 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 28 May 2014 09:59:38 +0000 (10:59 +0100)
'@' and '&' are only used in format strings as prefixes to type
strings and not to full format strings.

https://bugzilla.gnome.org/show_bug.cgi?id=729269

docs/reference/glib/gvariant-varargs.xml

index 77cc271..2e1eed6 100644 (file)
       </entry>
       <entry colsep='1' rowsep='1'>
        <para>
-        Used as a prefix on a GVariant type string (not format string).  Denotes that a pointer to a
+        Used as a prefix for a GVariant type string (not a prefix for a format string, so <literal>@as</literal> is
+        a valid format string but <literal>@^as</literal> is not).  Denotes that a pointer to a
         <link linkend='GVariant'>GVariant</link> should be used in place of the normal C type or types.  For
         <link linkend='g-variant-new'><function>g_variant_new()</function></link> this means that you must pass a
         non-<link linkend='NULL:CAPS'><literal>NULL</literal></link> <code>(<link linkend='GVariant'>GVariant</link>
       </entry>
       <entry colsep='1' rowsep='1'>
        <para>
-        Used as a prefix on a GVariant type string (not format string).  Denotes that a C pointer to serialised data
+        Used as a prefix for a GVariant type string (not a prefix for a format string, so <literal>&amp;s</literal> is
+        a valid format string but <literal>&amp;@s</literal> is not).
+        Denotes that a C pointer to serialised data
         should be used in place of the normal C type.  See
         <link linkend='gvariant-format-strings-pointers'>Pointers</link> below.
        </para>