Skip to content

Commit ce7f410

Browse files
committed
Fix typo in time.monotonic_ns() docstring
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 #10946
1 parent b8d92f9 commit ce7f410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/time/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time);
206206
//| def monotonic_ns() -> int:
207207
//| """Return the time of the monotonic clock, which cannot go backward, in nanoseconds.
208208
//| Not available on boards without long integer support.
209-
//| Only use it to compare against other values from `time.monotonic()`
209+
//| Only use it to compare against other values from `time.monotonic_ns()`
210210
//| during a single code run.
211211
//|
212212
//| :return: the current time

0 commit comments

Comments
 (0)