Permalink
Browse files

Matz says to raise TypeError in ruby-core:35859

  • Loading branch information...
sunaku committed Sep 26, 2011
1 parent 1cab645 commit 6812cd9fb87e17cf3aedccebd104d7958254cf98
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kernel_hash.rb
View
@@ -8,7 +8,7 @@ def Hash(value)
elsif value.nil? or Array(value).empty?
{}
else
- raise ArgumentError, "invalid value for Hash: #{value}"
+ raise TypeError, "invalid value for Hash: #{value}"
end
end
end

0 comments on commit 6812cd9

Please sign in to comment.