Skip to content

Commit 5edac05

Browse files
committed
Fix return tuple order in os.timerfd_gettime*() docstring
The reST docs have it right, but it's backwards in the docstring.
1 parent 02659dd commit 5edac05

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Modules/clinic/posixmodule.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11558,12 +11558,12 @@ os.timerfd_gettime
1155811558
A timer file descriptor.
1155911559
/
1156011560

11561-
Return a tuple of a timer file descriptor's (interval, next expiration) in float seconds.
11561+
Return a tuple of a timer file descriptor's (next expiration, interval) in float seconds.
1156211562
[clinic start generated code]*/
1156311563

1156411564
static PyObject *
1156511565
os_timerfd_gettime_impl(PyObject *module, int fd)
11566-
/*[clinic end generated code: output=ec5a94a66cfe6ab4 input=05f7d568a4820dc6]*/
11566+
/*[clinic end generated code: output=ec5a94a66cfe6ab4 input=7b0a7cc61ea9e31a]*/
1156711567
{
1156811568
struct itimerspec curr_value;
1156911569
int result;
@@ -11585,12 +11585,12 @@ os.timerfd_gettime_ns
1158511585
A timer file descriptor.
1158611586
/
1158711587

11588-
Return a tuple of a timer file descriptor's (interval, next expiration) in nanoseconds.
11588+
Return a tuple of a timer file descriptor's (next expiration, interval) in nanoseconds.
1158911589
[clinic start generated code]*/
1159011590

1159111591
static PyObject *
1159211592
os_timerfd_gettime_ns_impl(PyObject *module, int fd)
11593-
/*[clinic end generated code: output=580633a4465f39fe input=d0de95b9782179c5]*/
11593+
/*[clinic end generated code: output=580633a4465f39fe input=89702268455fa93b]*/
1159411594
{
1159511595
struct itimerspec curr_value;
1159611596
int result;

0 commit comments

Comments
 (0)