Skip to content

Commit 15f5c1b

Browse files
committed
Updated style
1 parent bc1b27c commit 15f5c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wilson_score.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module WilsonScore
44

55
# http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval
66
def self.interval(k, n, *args)
7-
raise ArgumentError.new ('second parameter cannot be 0') if n.zero?
7+
raise ArgumentError, "second parameter cannot be 0" if n.zero?
88
args = args.dup
99
options = args[-1].is_a?(Hash) ? args.pop : {}
1010
confidence = args[0] || options[:confidence] || 0.95

0 commit comments

Comments
 (0)