Fix example code in Nim manual that cannot be compiled without error (#23722)

This commit is contained in:
Tomohiro
2024-06-15 11:34:26 +09:00
committed by GitHub
parent 948bb38335
commit de1f7188eb

View File

@@ -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
```