summaryrefslogtreecommitdiff
path: root/macros/src/node.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-20 16:08:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-20 16:11:37 +0100
commitf5f7df7247ae29800e0290774a50942e2485beea (patch)
tree57253ba51efdae3ac8e4eea722428924625b514c /macros/src/node.rs
parentb8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff)
Documentation
Diffstat (limited to 'macros/src/node.rs')
-rw-r--r--macros/src/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/node.rs b/macros/src/node.rs
index 5f9573f9..e8324594 100644
--- a/macros/src/node.rs
+++ b/macros/src/node.rs
@@ -337,7 +337,7 @@ fn create_node_properties_func(node: &Node) -> syn::ImplItemMethod {
let shorthand = matches!(property.shorthand, Some(Shorthand::Positional));
let mut docs = documentation(&property.attrs);
- let example = quote_option(super::func::example(&mut docs));
+ let example = quote_option(super::func::example(&mut docs, 1));
let docs = docs.trim();
quote! {