diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 5127a541f..671130ebe 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1097,6 +1097,7 @@ def integer_squareroot(n: int) -> int: """ The largest integer ``x`` such that ``x**2`` is less than ``n``. """ + assert n >= 0 x = n y = (x + 1) // 2 while y < x: