From c080fb6d10bbcb697b6ba16e640de8db3f1973d0 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Thu, 9 Feb 1995 16:18:37 +0900 Subject: version 0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.65-0.66.diff.gz Thu Feb 9 16:18:37 1995 Yukihiro Matsumoto (matz@ix-02) * version 0.66 * parse.y: protectをbeginに変更.begin..endは例外処理だけでなく, 文括弧としても働くことになった. --- sample/occur2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample/occur2.rb') diff --git a/sample/occur2.rb b/sample/occur2.rb index 899294ea37..8cd5acbe5e 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 -- cgit v1.2.3