freeCodeCamp / wiki

freeCodeCamp's deprecated wiki articles
http://www.freecodecamp.com/wiki
281 stars 308 forks source link

Clarify solution for Confirm the Ending algorithm, remove error discussion #1202

Closed wiseleo closed 8 years ago

wiseleo commented 8 years ago

Wiki had a typo in substring, which should be substr. Solution explanation wasn't clear because it omitted mentioning the comparison and contained unnecessary discussion about why using -1 as substr's parameter is a bad idea.