Confused - discrepancy between documentation and code