Fix outdated method in documentation.
Remove unwanted assertion.