summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-18 19:55:42 +0000
committerGitHub <noreply@github.com>2026-01-18 19:55:42 +0000
commitc385307e5d6ea84a726f878d2129da19ae1e8e5b (patch)
tree710a286d1a85540a597fa46718f4972e700189c9
parent8401c970ece366592dcbfaa0affe1a1a1bc18ac8 (diff)
parent90d8165c5b284650a8b03fca178d07eb1f87b59f (diff)
Merge pull request #72 from anas-contribs/docs/fix-readme-typo
docs(readme): fix input prompt example
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 69eee0a..706bbd9 100644
--- a/README.md
+++ b/README.md
@@ -355,7 +355,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.";
```