mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
Fix example code in Nim manual that cannot be compiled without error (#23722)
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user