File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
stdlib/public/SwiftOnoneSupport Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ internal enum _Prespecialize {
25
25
var a = [ Element] ( repeating: sampleValue, count: 1 )
26
26
27
27
// Read array element
28
- let _ = a [ 0 ]
28
+ _ = a [ 0 ]
29
29
30
30
// Set array elements
31
31
for j in 1 ..< a. count {
@@ -42,7 +42,7 @@ internal enum _Prespecialize {
42
42
a [ 0 ] = sampleValue
43
43
44
44
// Get count and capacity
45
- let _ = a. count + a. capacity
45
+ _ = a. count + a. capacity
46
46
47
47
// Iterate over array
48
48
for e in a {
@@ -63,7 +63,7 @@ internal enum _Prespecialize {
63
63
a. reserveCapacity ( 100 )
64
64
65
65
// Sort array
66
- let _ = a. sorted { ( a: Element , b: Element ) in a < b }
66
+ _ = a. sorted { ( a: Element , b: Element ) in a < b }
67
67
a. sort { ( a: Element , b: Element ) in a < b }
68
68
69
69
// force specialization of append.
@@ -80,7 +80,7 @@ internal enum _Prespecialize {
80
80
var a = [ Element] ( repeating: sampleValue, count: 1 )
81
81
82
82
// Read array element
83
- let _ = a [ 0 ]
83
+ _ = a [ 0 ]
84
84
85
85
// Set array elements
86
86
for j in 0 ..< a. count {
@@ -96,7 +96,7 @@ internal enum _Prespecialize {
96
96
a [ 0 ] = sampleValue
97
97
98
98
// Get length and capacity
99
- let _ = a. count + a. capacity
99
+ _ = a. count + a. capacity
100
100
101
101
// Iterate over array
102
102
for e in a {
You can’t perform that action at this time.
0 commit comments