Change 10e6 to 1e7

This commit is contained in:
Firas Khalil Khana
2021-05-01 13:21:56 +03:00
committed by İnanç Gümüş
parent 6c55fa5310
commit c3fd981de3
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ package main
//
// 1. Create a nil slice
//
// 2. Loop 10e6 times
// 2. Loop 1e7 times
//
// 3. On each iteration: Append an element to the slice
//

View File

@ -17,7 +17,7 @@ func main() {
)
// loop 10 million times
for len(nums) < 10e6 {
for len(nums) < 1e7 {
// get the capacity
c := float64(cap(nums))