]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix link to time function from time_ns doc (GH-15285)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Aug 2019 20:51:11 +0000 (13:51 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Aug 2019 20:51:11 +0000 (13:51 -0700)
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 <merwok@netwok.org>
Doc/library/time.rst

index 4230c19faf1028f2c89ebf01dc6639fb4ddd19f0..17f8cfc5461473204b03829d157b13d1cbd5dcdc 100644 (file)
@@ -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