From 9a46002fc01b1b874d768b2e8372b725a9e8b298 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 2 Oct 2000 07:48:42 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/occur2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/occur2.rb b/sample/occur2.rb index c450c30b0f..b8ecf70904 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 -- cgit v1.2.3