From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 17 Aug 2019 20:51:11 +0000 (-0700) Subject: fix link to time function from time_ns doc (GH-15285) X-Git-Tag: v3.7.5rc1~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=316acf27045174bf090fa5f0000eae6801e0d322;p=thirdparty%2FPython%2Fcpython.git fix link to time function from time_ns doc (GH-15285) Because mod, func, class, etc all share one namespace, :func:time creates a link to the time module doc page rather than the time.time function. (cherry picked from commit 1b1d0514adbcdd859817c63d1410455c64660d78) Co-authored-by: Éric Araujo --- diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 4230c19faf10..17f8cfc54614 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -630,7 +630,7 @@ Functions .. function:: time_ns() -> int - Similar to :func:`time` but returns time as an integer number of nanoseconds + Similar to :func:`~time.time` but returns time as an integer number of nanoseconds since the epoch_. .. versionadded:: 3.7