[Python-checkins] Fix typo in _swappedbytes_ in ctypes comment (#102773)

hauntsaninja webhook-mailer at python.org
Sat Mar 25 19:38:30 EDT 2023


https://github.com/python/cpython/commit/30a306c2ade6c2af3c0b1d988a17dae3916e0d27
commit: 30a306c2ade6c2af3c0b1d988a17dae3916e0d27
branch: main
author: Matthias Görgens <matthias.goergens at gmail.com>
committer: hauntsaninja <12621235+hauntsaninja at users.noreply.github.com>
date: 2023-03-25T16:38:24-07:00
summary:

Fix typo in _swappedbytes_ in ctypes comment (#102773)

It's a minor typo, but it makes for a misleading comment.  Let's fix it.

files:
M Lib/ctypes/_endian.py

diff --git a/Lib/ctypes/_endian.py b/Lib/ctypes/_endian.py
index 34dee64b1a65..b5446c049bc9 100644
--- a/Lib/ctypes/_endian.py
+++ b/Lib/ctypes/_endian.py
@@ -37,7 +37,7 @@ class _swapped_union_meta(_swapped_meta, type(Union)): pass
 ################################################################
 
 # Note: The Structure metaclass checks for the *presence* (not the
-# value!) of a _swapped_bytes_ attribute to determine the bit order in
+# value!) of a _swappedbytes_ attribute to determine the bit order in
 # structures containing bit fields.
 
 if sys.byteorder == "little":



More information about the Python-checkins mailing list