diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-10-02 07:48:42 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-10-02 07:48:42 +0000 |
| commit | 846ce3e7cec9b173d8d5c4808f84dd75947bb101 (patch) | |
| tree | 9e3660449780967673d6a687f00329710e899537 /sample | |
| parent | 46b28a7b44ea1ecfdb5698f3c500790908f58bc1 (diff) | |
| download | ruby-846ce3e7cec9b173d8d5c4808f84dd75947bb101.tar.gz ruby-846ce3e7cec9b173d8d5c4808f84dd75947bb101.tar.xz ruby-846ce3e7cec9b173d8d5c4808f84dd75947bb101.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -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 c450c30b0..b8ecf7090 100644 --- a/sample/occur2.rb +++ b/sample/occur2.rb @@ -5,7 +5,7 @@ while gets() for word in $_.split(/\W+/) begin freq[word] = freq[word] + 1 - rescue + rescue NameError freq[word] = 1 end end |
