Skip to content

Commit eb84297

Browse files
author
Charlie Somerville
committed
return nil from assignment benchmarks
1 parent d4cabac commit eb84297

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

code/general/assignment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
def slow
44
a, b, c, d, e, f, g, h = 1, 2, 3, 4, 5, 6, 7, 8
5+
nil
56
end
67

78
def fast
@@ -13,6 +14,7 @@ def fast
1314
f = 6
1415
g = 7
1516
h = 8
17+
nil
1618
end
1719

1820
Benchmark.ips do |x|

0 commit comments

Comments
 (0)