diff --git a/bit_manipulation/index_of_rightmost_set_bit.py b/bit_manipulation/index_of_rightmost_set_bit.py index c9c911660b08..80811a9372f2 100644 --- a/bit_manipulation/index_of_rightmost_set_bit.py +++ b/bit_manipulation/index_of_rightmost_set_bit.py @@ -4,8 +4,8 @@ def get_index_of_rightmost_set_bit(number: int) -> int: """ Take in a positive integer 'number'. - Returns the zero-based index of first set bit in that 'number' from right. - Returns -1, If no set bit found. + Return the zero-based index of the first set bit in 'number' starting from right. + Return -1 if the set bit is not found. >>> get_index_of_rightmost_set_bit(0) -1