From 846ce3e7cec9b173d8d5c4808f84dd75947bb101 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 2 Oct 2000 07:48:42 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/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 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 -- cgit