diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
