Hacker News new | ask | show | jobs
by giblaz 2947 days ago
The error in the author's code seems to be better described as an "unnecessary function call" than a "stray parentheses". I spent more time looking for that stray parentheses than I should have before noticing the call to .title().

Very good article though.

1 comments

str.title is a method, the code is correct - it's the fixed version.