diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-25 08:49:36 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-25 08:49:36 +0000 |
commit | 6dede5115910bd88a0addc36349376735ee93949 (patch) | |
tree | f13685fa57c84af275c689f977f728c5a70308b6 /sample/occur2.rb | |
parent | 8dcdfe36b7c3c084764604f14b67b04fb3f4be01 (diff) | |
download | ruby-6dede5115910bd88a0addc36349376735ee93949.tar.gz |
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/occur2.rb')
-rw-r--r-- | sample/occur2.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/occur2.rb b/sample/occur2.rb index ca87d0ddef..ef8ad2c541 100644 --- a/sample/occur2.rb +++ b/sample/occur2.rb @@ -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+/) |