Correct errors in code snippets in documentation.