1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sample/occur2.rb: have been broken. fixed for Ruby 1.9 feature.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-12-27 00:14:41 +00:00
parent e9e2d5ffff
commit f9f54fb5eb
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Dec 27 09:13:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* sample/occur2.rb: have been broken. fixed for Ruby 1.9 feature.
Thu Dec 24 16:32:30 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/uri/generic.rb (eql?): Check the class of the compared object.

View file

@ -2,7 +2,7 @@
# usege: ruby occur2.rb file..
freq = {}
while gets()
for word in split(/\W+/)
for word in $_.split(/\W+/)
begin
freq[word] += 1
rescue NameError