From 3d7df45c2b25a84acf824fd6b70e9a6d0cf69d03 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 14 Apr 2018 14:34:26 -0700 Subject: [PATCH] fix get_bit docs --- masque/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/masque/utils.py b/masque/utils.py index 59e8169..0f5db05 100644 --- a/masque/utils.py +++ b/masque/utils.py @@ -21,10 +21,10 @@ def is_scalar(var: Any) -> bool: def get_bit(bit_string: Any, bit_id: int) -> bool: """ - Returns true iff bit number 'bit_id' from the right of 'bitstring' is 1 + Returns true iff bit number 'bit_id' from the right of 'bit_string' is 1 - :param bit_string: st - :param bit_id: + :param bit_string: Bit string to test + :param bit_id: Bit number, 0-indexed from the right (lsb :return: value of the requested bit (bool) """ return bit_string & (1 << bit_id) != 0