Skip to content

Fix typo in time.monotonic_ns() docstring#10950

Merged
dhalbert merged 1 commit intoadafruit:mainfrom
tannewt:fix-issue-10946
Apr 16, 2026
Merged

Fix typo in time.monotonic_ns() docstring#10950
dhalbert merged 1 commit intoadafruit:mainfrom
tannewt:fix-issue-10946

Conversation

@tannewt
Copy link
Copy Markdown
Member

@tannewt tannewt commented Apr 16, 2026

Summary

  • The docstring for time.monotonic_ns() said to compare against other values from time.monotonic(), but those two functions return different units (seconds vs. nanoseconds). Fixed it to reference time.monotonic_ns() instead.

Fixes #10946

Test plan

  • Docstring-only change; no behavior impact.

The docstring for monotonic_ns referred to comparing against values from
time.monotonic(), but should refer to time.monotonic_ns() since the two
return different units.

Fixes micropython#10946
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dhalbert dhalbert merged commit e011c9f into adafruit:main Apr 16, 2026
665 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo on the 'time' doc page

2 participants