]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: fix typo in os.pwrite docstring (#107087)
authorJérôme Carretero <cJ-tub@zougloub.eu>
Sun, 23 Jul 2023 21:53:25 +0000 (17:53 -0400)
committerGitHub <noreply@github.com>
Sun, 23 Jul 2023 21:53:25 +0000 (14:53 -0700)
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c

index a8f6ce026a331baff6e09ba52e711289d0b6493d..81e3162e679d162006acce762540d9ad18059386 100644 (file)
@@ -7366,7 +7366,7 @@ PyDoc_STRVAR(os_pwrite__doc__,
 "Write bytes to a file descriptor starting at a particular offset.\n"
 "\n"
 "Write buffer to fd, starting at offset bytes from the beginning of\n"
-"the file.  Returns the number of bytes writte.  Does not change the\n"
+"the file.  Returns the number of bytes written.  Does not change the\n"
 "current file offset.");
 
 #define OS_PWRITE_METHODDEF    \
@@ -11981,4 +11981,4 @@ exit:
 #ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF
     #define OS_WAITSTATUS_TO_EXITCODE_METHODDEF
 #endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */
-/*[clinic end generated code: output=a7e8c3df2db09717 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a85a386b212b0631 input=a9049054013a1b77]*/
index 23bf978d0cdbf1b8d599674c77e75478ba3292a9..7e04d12a9e4e7cd826bfb8289df11c5ab119ce3f 100644 (file)
@@ -11283,13 +11283,13 @@ os.pwrite -> Py_ssize_t
 Write bytes to a file descriptor starting at a particular offset.
 
 Write buffer to fd, starting at offset bytes from the beginning of
-the file.  Returns the number of bytes writte.  Does not change the
+the file.  Returns the number of bytes written.  Does not change the
 current file offset.
 [clinic start generated code]*/
 
 static Py_ssize_t
 os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset)
-/*[clinic end generated code: output=c74da630758ee925 input=19903f1b3dd26377]*/
+/*[clinic end generated code: output=c74da630758ee925 input=614acbc7e5a0339a]*/
 {
     Py_ssize_t size;
     int async_err = 0;