Fix doctests and builds in various files (#6233)

* Fix doctest in hamming distance

* add line break

* try to fix quantum_riper_adder

* fix floating point build
This commit is contained in:
John Law
2022-07-06 16:00:05 +08:00
committed by GitHub
parent 89fc7bf0b0
commit 9135a1f411
3 changed files with 9 additions and 4 deletions

View File

@ -18,6 +18,8 @@ def hamming_distance(string1: str, string2: str) -> int:
>>> hamming_distance("00000", "11111")
5
>>> hamming_distance("karolin", "kath")
Traceback (most recent call last):
...
ValueError: String lengths must match!
"""
if len(string1) != len(string2):