diff options
author | Tomohiro <gpuppur@gmail.com> | 2024-06-15 11:34:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 10:34:26 +0800 |
commit | de1f7188eb5026ce86ea3e01ee2a1a506e8b663f (patch) | |
tree | 9f930cc2bef3a6713e2c4ab008f13c61a5838cc2 /doc | |
parent | 948bb38335985c2c873612e66e2e054ef0573b58 (diff) | |
download | Nim-de1f7188eb5026ce86ea3e01ee2a1a506e8b663f.tar.gz |
Fix example code in Nim manual that cannot be compiled without error (#23722)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.md b/doc/manual.md index bb7b603a8..16c116328 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -8703,7 +8703,7 @@ after the last specified parameter. Nim string values will be converted to C strings automatically: ```Nim - proc printf(formatstr: cstring) {.nodecl, varargs.} + proc printf(formatstr: cstring) {.header: "<stdio.h>", varargs.} printf("hallo %s", "world") # "world" will be passed as C string ``` |