summary refs log tree commit diff stats
path: root/doc/manual.txt
diff options
context:
space:
mode:
authorklaufir <klaufir@hotmail.com>2014-06-01 04:20:47 +0200
committerklaufir <klaufir@hotmail.com>2014-06-01 04:20:47 +0200
commit56a912fb2a6d7cf3723b0ec5e5af1967ea583657 (patch)
tree81b542db0f89439926e4f9d3fba866acbc99dc7a /doc/manual.txt
parentcbe25a41b031ea8c36dce1b47c26fd7682e40a82 (diff)
downloadNim-56a912fb2a6d7cf3723b0ec5e5af1967ea583657.tar.gz
adding header pragma for printf ffi example
Diffstat (limited to 'doc/manual.txt')
-rw-r--r--doc/manual.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 5afe385bb..57cf39765 100644
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -5485,7 +5485,7 @@ the argument is missing, the C name is the Nimrod identifier *exactly as
 spelled*:
 
 .. code-block::
-  proc printf(formatstr: cstring) {.importc: "printf", varargs.}
+  proc printf(formatstr: cstring) {.header: "stdio.h", importc: "printf", varargs.}
 
 Note that this pragma is somewhat of a misnomer: Other backends will provide
 the same feature under the same name.