summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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