diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-10 14:48:34 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-10 14:48:34 +0200 |
commit | 8151031373c08ccd714a99f50783eafcb54d2010 (patch) | |
tree | 1bcf6e78392978f4ae972a5dcc936a4c266f3d78 /pt_bloom | |
parent | e137509a77e3a8c12af32852ebba893dacb53f85 (diff) |
undo unfortunate variable naming: cfg -> conf!
Diffstat (limited to 'pt_bloom')
-rwxr-xr-x | pt_bloom | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,12 +6,12 @@ require 'trollop' STDIN.set_encoding 'utf-8' STDOUT.set_encoding 'utf-8' -cfg = Trollop::options do +conf = Trollop::options do opt :size, "number of entries in the filter", :type => :int, :required => true opt :error_rate, "error rate", :type => :float, :default => 0.01 end -f = BloomFilter.new cfg[:size], cfg[:error_rate] +f = BloomFilter.new conf[:size], conf[:error_rate] while line = STDIN.gets src, tgt = splitpipe(line)[0..1] src.strip! |