summaryrefslogtreecommitdiff
path: root/sample/occur2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/occur2.rb')
-rw-r--r--sample/occur2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/occur2.rb b/sample/occur2.rb
index 899294e..8cd5acb 100644
--- a/sample/occur2.rb
+++ b/sample/occur2.rb
@@ -3,7 +3,7 @@
freq = {}
while gets()
for word in $_.split(/\W+/)
- protect
+ begin
freq[word] = freq[word] + 1
resque
freq[word] = 1