If you wrote a function in a dynamically typed language and the documentation said "this accepts integers", but actually it crashed if you gave a prime integer and you only expected people to give it composite integers, people would say that the documentation was inaccurate.