summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 08:18:06 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 08:18:51 -0500
commit80040109a9c82e0f3c756b8742499209700f65ca (patch)
tree1bcf6d6b36728d888a2f6f3b818e4ef18a143f14 /giscanner/doctemplates
parent6727ebea5bcd2d823fb05c0df67efff4e77436ea (diff)
downloadgobject-introspection-80040109a9c82e0f3c756b8742499209700f65ca.tar.gz
doctool: Make sure to add "new"
Diffstat (limited to 'giscanner/doctemplates')
-rw-r--r--giscanner/doctemplates/Gjs/class.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/doctemplates/Gjs/class.tmpl b/giscanner/doctemplates/Gjs/class.tmpl
index 457361c7..887c646b 100644
--- a/giscanner/doctemplates/Gjs/class.tmpl
+++ b/giscanner/doctemplates/Gjs/class.tmpl
@@ -3,7 +3,7 @@
<synopsis><code>
const ${namespace.name} = imports.gi.${namespace.name};
-let ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\
+let ${formatter.to_underscores(node.name).lower()} = new ${namespace.name}.${node.name}(\
% if len(node.properties) > 0:
{
% for ix, property_ in enumerate(node.properties):