Issue #27124: Fix documentation of exception raised by a2b_hex()
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst
index 259680f..1752c63 100644
--- a/Doc/library/binascii.rst
+++ b/Doc/library/binascii.rst
@@ -151,8 +151,8 @@
 
    Return the binary data represented by the hexadecimal string *hexstr*.  This
    function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
-   of hexadecimal digits (which can be upper or lower case), otherwise a
-   :exc:`TypeError` is raised.
+   of hexadecimal digits (which can be upper or lower case), otherwise an
+   :exc:`Error` exception is raised.
 
 
 .. exception:: Error