From 52f34311b908e661f257cab70d60d89d37a2da75 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Feb 2012 13:33:44 -0500 Subject: [PATCH] Docs: fix reference to nonexisting function The regex syntax docs referred to g_regex_fetch() when g_match_info_fetch() was meant. https://bugzilla.gnome.org/show_bug.cgi?id=669865 --- docs/reference/glib/regex-syntax.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/glib/regex-syntax.sgml b/docs/reference/glib/regex-syntax.sgml index 5be56baae..5e14feaa4 100644 --- a/docs/reference/glib/regex-syntax.sgml +++ b/docs/reference/glib/regex-syntax.sgml @@ -1211,7 +1211,7 @@ cat(aract|erpillar|) matches one of the words "cat", "cataract", or It sets up the subpattern as a capturing subpattern. This means that, when the whole pattern matches, that portion of the -string that matched the subpattern can be obtained using g_regex_fetch(). +string that matched the subpattern can be obtained using g_match_info_fetch(). Opening parentheses are counted from left to right (starting from 1, as subpattern 0 is the whole matched string) to obtain numbers for the capturing subpatterns.