diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index 711392b..68101cc 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -355,13 +355,14 @@ sub MakeXRef {
 
         # don't warn multiple times and also skip blacklisted (ctypes)
         $warn = 0 if exists $NoLinks{$id};
-        # if its a function, don't warn if it does not contain a "_"
+        # if it's a function, don't warn if it does not contain a "_"
+        # (transformed to "-")
         # - gnome coding style would use '_'
         # - will avoid wrong warnings for ansi c functions
-        $warn = 0 if ($text =~ m/ class=\"function\"/ && $id !~ m/_/);
-        # if its a 'return value', don't warn (implizitely created link)
+        $warn = 0 if ($text =~ m/ class=\"function\"/ && $id !~ m/-/);
+        # if it's a 'return value', don't warn (implizitely created link)
         $warn = 0 if ($text =~ m/ class=\"returnvalue\"/);
-        # if its a 'type', don't warn if it starts with lowercase
+        # if it's a 'type', don't warn if it starts with lowercase
         # - gnome coding style would use CamelCase
         $warn = 0 if ($text =~ m/ class=\"type\"/ && ($id =~ m/^[a-z]/));
 
