gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

Remove reference to undefined binding

2423d113e31dfa3806b60dfb279997a806a0d9df · by Mike Pennisi · (7 years ago) · parent 7c39d8dd6 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/docs/src/pages/docs/javascript.mdx b/docs/src/pages/docs/javascript.mdx
index 163725bdc..a2b917ac5 100644
--- a/docs/src/pages/docs/javascript.mdx
+++ b/docs/src/pages/docs/javascript.mdx
@@ -49,7 +49,7 @@ node.addChild(new Node({width: 100, height: 100}));
 node.computeLayout();
   
 // Mutate node
-node.setStyle(Style({width: 100, height: 100}))
+node.setStyle({width: 100, height: 100})
  
 // This call will return partially cached results
 node.computeLayout();