8000 [3.13] gh-126256: Update time.rst to use the same clock as instead of the same clock than (GH-126257) by miss-islington · Pull Request #126258 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] gh-126256: Update time.rst to use the same clock as instead of the same clock than (GH-126257) #126258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-126256: Update time.rst to use the same clock as instead of the sa…
…me clock than (GH-126257)

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`.
(cherry picked from commit d0abd0b)

Co-authored-by: Alperen Keleş <alpkeles99@gmail.com>
  • Loading branch information
alpaylan authored and miss-islington committed Oct 31, 2024
commit ecfb6180474e0d0a7e0e4904c919792662d0b5ec
4 changes: 2 additions & 2 deletions Doc/library/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading
0