summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorJudd <foldl@users.noreply.github.com>2022-09-09 21:02:15 +0800
committerGitHub <noreply@github.com>2022-09-09 15:02:15 +0200
commit89e6540fd3a924c387defe2bf7648ebc653c2418 (patch)
tree562611fe08e072f24af9bd09cfaaaf910e137fc7 /doc
parent1699ba1c93acd30c871bb7bf2788630a9ad4577c (diff)
downloadNim-89e6540fd3a924c387defe2bf7648ebc653c2418.tar.gz
update manual (#20325)
1. remove two redundant `.`;
1. add information on format string for `importc` just as `exportc`
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 8d1440f4d..1455334ca 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -7893,9 +7893,9 @@ will generate this code:
 `cppNonPod` pragma
 ------------------
 
-The `.cppNonPod` pragma should be used for non-POD `importcpp` types so that they
+The `cppNonPod` pragma should be used for non-POD `importcpp` types so that they
 work properly (in particular regarding constructor and destructor) for
-`.threadvar` variables. This requires `--tlsEmulation:off`:option:.
+`threadvar` variables. This requires `--tlsEmulation:off`:option:.
 
   ```nim
   type Foo {.cppNonPod, importcpp, header: "funs.h".} = object
@@ -8127,6 +8127,8 @@ is not set to C, other pragmas are available:
  * `importobjc <manual.html#implementation-specific-pragmas-importobjc-pragma>`_
  * `importjs <manual.html#implementation-specific-pragmas-importjs-pragma>`_
 
+The string literal passed to `importc` can be a format string:
+
   ```Nim
   proc p(s: cstring) {.importc: "prefix$1".}
   ```