1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typo by @daveworth [fix GH-340]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2013-06-25 08:49:36 +00:00
parent 8dcdfe36b7
commit 6dede51159
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# word occurrence listing
# usege: ruby freq.rb file..
# usage: ruby freq.rb file..
freq = Hash.new(0)
while line = gets()
line.scan(/\w+/) do |word|

View file

@ -1,5 +1,5 @@
# word occurrence listing
# usege: ruby occur.rb file..
# usage: ruby occur.rb file..
freq = Hash.new(0)
while line = gets()
for word in line.split(/\W+/)

View file

@ -1,5 +1,5 @@
# word occurrence listing
# usege: ruby occur2.rb file..
# usage: ruby occur2.rb file..
freq = {}
ARGF.each_line do |line|
for word in line.split(/\W+/)