]> granicus.if.org Git - python/commitdiff
fix link to time function from time_ns doc (GH-15285)
authorÉric Araujo <merwok@netwok.org>
Sat, 17 Aug 2019 20:34:08 +0000 (16:34 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Aug 2019 20:34:08 +0000 (13:34 -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.

Doc/library/time.rst

index 6d0ceafa522ad6949a79aa0b4b25adb2cfbf3408..4faa0bbebc5b1f3fe16a23f7a45c32d9ba3807be 100644 (file)
@@ -608,7 +608,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