Fix two small documentation errors, and make the style more uniform.

The only code change here is to a string within an exception which had an error.