Sophrinix / TryRuby

Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
tryruby.org
347 stars 79 forks source link

Typo in "Hey, a cool comics thing" #138

Open ghost opened 13 years ago

ghost commented 13 years ago

"strip removes extra spaces around the name. Just in case."

This doesn't jibe with the code. Check it:

def load_comics( path ) comics = {} File.foreach(path) do |line| name, url = line.split(': ') comics[name] = url.strip end comics end

Perhaps it should be:

"strip removes extra spaces around the url. Just in case."