Skip to content

Commit

Permalink
Clarify that get_num_bits_different deals with integers
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt authored May 27, 2024
1 parent b430192 commit b2271b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def dhash_int(image, size=8):


def get_num_bits_different(hash1, hash2):
"""Calculate number of bits different between two hashes.
"""Calculate number of bits different between two integer hashes.
>>> get_num_bits_different(0x4bd1, 0x4bd1)
0
Expand Down

0 comments on commit b2271b8

Please sign in to comment.