Fixed typo in comments for `rank` method