#6371: fix link targets.
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index a07a751..a1055d8 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -642,8 +642,8 @@
 ``parser.error()`` from your application code.
 
 If :mod:`optparse`'s default error-handling behaviour does not suit your needs,
-you'll need to subclass OptionParser and override its :meth:`exit` and/or
-:meth:`error` methods.
+you'll need to subclass OptionParser and override its :meth:`~OptionParser.exit`
+and/or :meth:`~OptionParser.error` methods.
 
 
 .. _optparse-putting-it-all-together: