summaryrefslogtreecommitdiff
path: root/sample/occur.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-25 08:49:36 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-25 08:49:36 +0000
commit6dede5115910bd88a0addc36349376735ee93949 (patch)
treef13685fa57c84af275c689f977f728c5a70308b6 /sample/occur.rb
parent8dcdfe36b7c3c084764604f14b67b04fb3f4be01 (diff)
fix typo by @daveworth [fix GH-340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/occur.rb')
-rw-r--r--sample/occur.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/occur.rb b/sample/occur.rb
index 4ec6ae4..42151d8 100644
--- a/sample/occur.rb
+++ b/sample/occur.rb
@@ -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+/)