From 088a32128d2ffa144b9006fef4629964d87afa26 Mon Sep 17 00:00:00 2001 From: EnabledFish <70457081+EnabledFish@users.noreply.github.com> Date: Mon, 25 Jul 2022 00:13:08 +0800 Subject: [PATCH] Fix: Replace `Int: x` -> `x: Int` (#1620) Declaring variables should use `var x: Int`. --- explorer/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer/README.md b/explorer/README.md index 42b49a4f4351..909ed75db1d6 100644 --- a/explorer/README.md +++ b/explorer/README.md @@ -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;