diff --git a/bob/ip/binseg/data/imagefolderinference.py b/bob/ip/binseg/data/imagefolderinference.py
index 0c934cb440e3011ccb0b4f8e99091491a68a7565..af824bc6ebeb23b5e0b05708695eaae3158ce8f8 100644
--- a/bob/ip/binseg/data/imagefolderinference.py
+++ b/bob/ip/binseg/data/imagefolderinference.py
@@ -12,7 +12,7 @@ def get_file_lists(data_path, glob):
     """
     Recursively retrieves file lists from a given path, matching a given glob
 
-    This function will use :py:method:`pathlib.Path.rglob`, together with the
+    This function will use :py:meth:`pathlib.Path.rglob`, together with the
     provided glob pattern to search for anything the desired filename.
     """