summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8a7629b..59dd122 100644
--- a/README.md
+++ b/README.md
@@ -351,7 +351,8 @@ Zen C supports a shorthand for prompting user input using the `?` prefix.
- Format specifiers are automatically inferred based on variable type.
```c
-var age = "How old are you? ";
+var age: int;
+? "How old are you? " (age);
println "You are {age} years old.";
```