Fix: Replace Int: x -> x: Int (#1620)

Declaring variables should use `var x: Int`.
This commit is contained in:
EnabledFish
2022-07-24 09:13:08 -07:00
committed by GitHub
parent 31df852738
commit 088a32128d
+2 -2
View File
@@ -224,8 +224,8 @@ The first time increments `x` to `1` and the second time increments `x` to `2`,
so the expected result of this program is `2`.
```carbon
fn Main() -> Int {
var Int: x = 0;
fn Main() -> i32 {
var x: i32 = 0;
__continuation k {
x = x + 1;
__await;