Doc: Fix link to window.getch in curses documentation (GH-16132)

diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index c88d352..f1803c6 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -1283,7 +1283,7 @@
 
 .. data:: ERR
 
-   Some curses routines  that  return  an integer, such as  :func:`getch`, return
+   Some curses routines  that  return  an integer, such as :meth:`~window.getch`, return
    :const:`ERR` upon failure.