THRIFT-375. rb: syntax error in benchmark.rb
Fixed the syntax error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756617 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/benchmark/benchmark.rb b/lib/rb/benchmark/benchmark.rb
index 1c1bcac..b99003e 100644
--- a/lib/rb/benchmark/benchmark.rb
+++ b/lib/rb/benchmark/benchmark.rb
@@ -214,7 +214,7 @@
}
def tabulate(fmt, *labels_and_values)
- labels = labels_and_values.map { |(l,)| Array === l ? l.first : l }
+ labels = labels_and_values.map { |l| Array === l ? l.first : l }
label_width = labels.inject(0) { |w,l| l.size > w ? l.size : w }
labels_and_values.each do |(l,v)|
f = fmt