diff options
| author | Anas Elgarhy <anas.elgarhy.dev@gmail.com> | 2026-01-18 19:18:53 +0200 |
|---|---|---|
| committer | Anas Elgarhy <anas.elgarhy.dev@gmail.com> | 2026-01-18 19:39:28 +0200 |
| commit | 90d8165c5b284650a8b03fca178d07eb1f87b59f (patch) | |
| tree | 908473871d3a215a1adbe1f9a2239c15056401c4 /README.md | |
| parent | fc4abb77ecab8fe3c497e13d7f7d6d8f832514b2 (diff) | |
docs(readme): fix input prompt example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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."; ``` |
