Fixes typo in error method documentation.
Merge pull request #3974 from abrinkman/master

Fixes typo in method documentation.