Optimize op-assignment statement.
This commit is contained in:
@@ -7,7 +7,7 @@ let x = 1_000_000;
|
||||
print("Ready... Go!");
|
||||
|
||||
while x > 0 {
|
||||
x = x - 1;
|
||||
x -= 1;
|
||||
}
|
||||
|
||||
print("Finished. Run time = " + now.elapsed() + " seconds.");
|
||||
|
Reference in New Issue
Block a user