Correct a code example

One of the code examples contained a message that did not seem
appropriate for an assertion error.

I changed the language of the error so it would seem like an assertion
error message.