From b4734d3b5be80cec382ca7406c2146e5fd0da986 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 30 Jul 2018 21:15:22 +0100 Subject: [PATCH] docs: Add some more backtick quotation That should format these character classes correctly in the documentation, and prevent them being interpreted by gtk-doc as (broken) Markdown hyperlinks. Signed-off-by: Philip Withnall --- glib/gtranslit.c | 4 ++-- glib/gvariant.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/glib/gtranslit.c b/glib/gtranslit.c index 600638c86..4d83ee9f9 100644 --- a/glib/gtranslit.c +++ b/glib/gtranslit.c @@ -314,12 +314,12 @@ get_default_item_id (void) * If the source language of @str is known, it can used to improve the * accuracy of the translation by passing it as @from_locale. It should * be a valid POSIX locale string (of the form - * "language[_territory][.codeset][@modifier]"). + * `language[_territory][.codeset][@modifier]`). * * If @from_locale is %NULL then the current locale is used. * * If you want to do translation for no specific locale, and you want it - * to be done independently of the currently locale, specify "C" for + * to be done independently of the currently locale, specify `"C"` for * @from_locale. * * Returns: a string in plain ASCII diff --git a/glib/gvariant.c b/glib/gvariant.c index 4dbce8c60..2c9f951b3 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -1364,10 +1364,10 @@ g_variant_new_object_path (const gchar *object_path) * should ensure that a string is a valid D-Bus object path before * passing it to g_variant_new_object_path(). * - * A valid object path starts with '/' followed by zero or more - * sequences of characters separated by '/' characters. Each sequence - * must contain only the characters "[A-Z][a-z][0-9]_". No sequence - * (including the one following the final '/' character) may be empty. + * A valid object path starts with `/` followed by zero or more + * sequences of characters separated by `/` characters. Each sequence + * must contain only the characters `[A-Z][a-z][0-9]_`. No sequence + * (including the one following the final `/` character) may be empty. * * Returns: %TRUE if @string is a D-Bus object path *