add documentation for digit constraint