Skip to content

Commit 9f69c99

Browse files
committed
Merge pull request #66 from yous/fix-unused-variable-warning
Fix unused variable warnings
2 parents bc6a187 + c543f8f commit 9f69c99

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

code/general/assignment.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
require 'benchmark/ips'
22

33
def fast
4-
a, b, c, d, e, f, g, h = 1, 2, 3, 4, 5, 6, 7, 8
4+
_a, _b, _c, _d, _e, _f, _g, _h = 1, 2, 3, 4, 5, 6, 7, 8
55
nil
66
end
77

88
def slow
9-
a = 1
10-
b = 2
11-
c = 3
12-
d = 4
13-
e = 5
14-
f = 6
15-
g = 7
16-
h = 8
9+
_a = 1
10+
_b = 2
11+
_c = 3
12+
_d = 4
13+
_e = 5
14+
_f = 6
15+
_g = 7
16+
_h = 8
1717
nil
1818
end
1919

0 commit comments

Comments
 (0)