]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-126256: Update time.rst to use the same clock as instead of the same clock than...
authorAlperen Keleş <alpkeles99@gmail.com>
Thu, 31 Oct 2024 21:44:34 +0000 (17:44 -0400)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 21:44:34 +0000 (21:44 +0000)
Update time.rst to use `the same clock as` instead of `the same clock than`

The time documentation uses the same clock than time.monotonic instead of the same clock as time.monotonic, which is grammatically false. This PR fixes changes two instances of `the same clock than` to `the same clock as`.

Doc/library/time.rst

index 8e29e57d00f9b2be9df08469d749e34e95eb9aeb..9cd5db768e9853c424df0e5459ee7435a006c50d 100644 (file)
@@ -327,7 +327,7 @@ Functions
 
    .. impl-detail::
 
-      On CPython, use the same clock than :func:`time.monotonic` and is a
+      On CPython, use the same clock as :func:`time.monotonic` and is a
       monotonic clock, i.e. a clock that cannot go backwards.
 
    Use :func:`perf_counter_ns` to avoid the precision loss caused by the
@@ -339,7 +339,7 @@ Functions
       On Windows, the function is now system-wide.
 
    .. versionchanged:: 3.13
-      Use the same clock than :func:`time.monotonic`.
+      Use the same clock as :func:`time.monotonic`.
 
 
 .. function:: perf_counter_ns() -> int