Change 10e6 to 1e7
This commit is contained in:
		
				
					committed by
					
						
						İnanç Gümüş
					
				
			
			
				
	
			
			
			
						parent
						
							6c55fa5310
						
					
				
				
					commit
					c3fd981de3
				
			@@ -20,7 +20,7 @@ package main
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
//  1. Create a nil slice
 | 
					//  1. Create a nil slice
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//  2. Loop 10e6 times
 | 
					//  2. Loop 1e7 times
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//  3. On each iteration: Append an element to the slice
 | 
					//  3. On each iteration: Append an element to the slice
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ func main() {
 | 
				
			|||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// loop 10 million times
 | 
						// loop 10 million times
 | 
				
			||||||
	for len(nums) < 10e6 {
 | 
						for len(nums) < 1e7 {
 | 
				
			||||||
		// get the capacity
 | 
							// get the capacity
 | 
				
			||||||
		c := float64(cap(nums))
 | 
							c := float64(cap(nums))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user