Escape percent sign in g_variant_new_parsed documentation
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 4 Oct 2011 09:46:13 +0000 (10:46 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 4 Oct 2011 11:38:32 +0000 (12:38 +0100)
Strings matching /%[a-z]/ are special syntax for gtk-doc.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=632049
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ryan Lortie <desrt@desrt.ca>
glib/gvariant-parser.c

index 9f9c34c..ccd4c35 100644 (file)
@@ -2487,7 +2487,7 @@ g_variant_new_parsed_va (const gchar *format,
  *
  * You may not use this function to return, unmodified, a single
  * #GVariant pointer from the argument list.  ie: @format may not solely
- * be anything along the lines of "%*", "%?", "%r", or anything starting
+ * be anything along the lines of "%*", "%?", "\%r", or anything starting
  * with "%@".
  **/
 GVariant *