summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-13 20:00:13 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-13 20:00:38 +0000
commitb3e2dfca70fbd241766783d665a1b2eff7134d92 (patch)
treed28e90ece3096090f69cc69c35b71ae0d844e13d /README.md
parent64732fbbec8ea8001884ff31e719a086b7447f92 (diff)
Fixed comptime example in README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 256c022..dd9e333 100644
--- a/README.md
+++ b/README.md
@@ -395,8 +395,11 @@ fn main() {
Run code at compile-time to generate source or print messages.
```zc
comptime {
- print("Compiling...");
+ // Generate code at compile-time (written to stdout)
+ println "var build_date = \"2024-01-01\";";
}
+
+println "Build Date: {build_date}";
```
#### Embed