Fixed docstring: intervals should be in square brackets, not round brackets.