From b3e2dfca70fbd241766783d665a1b2eff7134d92 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Tue, 13 Jan 2026 20:00:13 +0000 Subject: Fixed comptime example in README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3