Update 0_beacon-chain.md

This commit is contained in:
Dean Eigenmann 2019-02-22 13:00:29 +01:00 committed by GitHub
parent a8c3c45faf
commit e1fc8a5765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1028,7 +1028,7 @@ def is_power_of_two(value: int) -> bool:
""" """
Check if ``value`` is a power of two integer. Check if ``value`` is a power of two integer.
""" """
return (value > 0) && (value & (value - 1) == 0) return (value > 0) and (value & (value - 1) == 0)
``` ```
### `int_to_bytes1`, `int_to_bytes2`, ... ### `int_to_bytes1`, `int_to_bytes2`, ...