summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-12-29 06:44:48 -0600
committerGitHub <noreply@github.com>2020-12-29 13:44:48 +0100
commit732419ae907208b0b484911b996893097402a6c7 (patch)
treea69f23d7b67bade070941f3fa74a7068cf1d9153 /tests
parentd5a3c2c2da2e3b2f6deeb2c1cd5430db90bc4fd5 (diff)
downloadNim-732419ae907208b0b484911b996893097402a6c7.tar.gz
improve examples in manual (#16497)
* improve examples in manual

* Update doc/manual.rst

Co-authored-by: Clyybber <darkmine956@gmail.com>

* Update tests/cpp/ttemplatetype.nim

Co-authored-by: Clyybber <darkmine956@gmail.com>

Co-authored-by: Clyybber <darkmine956@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/cpp/ttemplatetype.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cpp/ttemplatetype.nim b/tests/cpp/ttemplatetype.nim
index ef24e4cdc..bf243ac43 100644
--- a/tests/cpp/ttemplatetype.nim
+++ b/tests/cpp/ttemplatetype.nim
@@ -3,7 +3,7 @@ discard """
 """
 
 type
-  Map {.importcpp: "std::map", header: "<map>".} [T,U] = object
+  Map[T,U] {.importcpp: "std::map", header: "<map>".} = object
 
 proc cInitMap(T: typedesc, U: typedesc): Map[T,U] {.importcpp: "std::map<'*1,'*2>()", nodecl.}