Skip to content

Commit b470926

Browse files
committed
fix doctest
1 parent 5a08f39 commit b470926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ Utilities and Decorators
10461046
two's-complement, and the leading bit always indicates sign
10471047
(0=positive, 1=negative).
10481048

1049-
>>> from enum import enum
1049+
>>> import enum
10501050
>>> enum.bin(10)
10511051
'0b0 1010'
10521052
>>> enum.bin(~10) # ~10 is -11

0 commit comments

Comments
 (0)