Skip to content

Commit 33d493e

Browse files
committed
Docs: fix incorrect reference in bin() documentation
1 parent d71e3bc commit 33d493e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/functions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ are always available. They are listed here in alphabetical order.
138138
>>> f'{14:#b}', f'{14:b}'
139139
('0b1110', '1110')
140140

141-
See also :func:`enum.bin` to represent negative values as twos-complement.
141+
See also :func:`format` for more information on binary representations.
142142

143-
See also :func:`format` for more information.
143+
Negative integers are represented with a leading ``'-'`` sign rather than
144+
using two's complement form.
144145

145146

146147
.. class:: bool(object=False, /)

0 commit comments

Comments
 (0)