Skip to content

Commit 41bb09e

Browse files
committed
deploy: 24a1756
1 parent b9c7c14 commit 41bb09e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Summary/controlling-script-bindings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2 id="registering-script-functions"><a class="header" href="#registering-scrip
224224
<p>Note the <code>new_unregistered</code> call instead of <code>new</code>, this is because <code>GlobalNamespace</code> is not a <code>Reflect</code> type, and the <code>new</code> call also automatically registers the type in the reflection registry.</p>
225225
<h2 id="macros"><a class="header" href="#macros">Macros</a></h2>
226226
<p>The above is a bit tedious, so instead you can use the <code>script_bindings</code> macro, which applies to impl blocks like so:</p>
227-
<pre><code class="language-rust ignore">#[script_bindings("test_fn")]
227+
<pre><code class="language-rust ignore">#[script_bindings(name = "test_fn")]
228228
impl TestStruct {
229229
/// My docs !!
230230
///

print.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ <h2 id="registering-script-functions"><a class="header" href="#registering-scrip
400400
<p>Note the <code>new_unregistered</code> call instead of <code>new</code>, this is because <code>GlobalNamespace</code> is not a <code>Reflect</code> type, and the <code>new</code> call also automatically registers the type in the reflection registry.</p>
401401
<h2 id="macros"><a class="header" href="#macros">Macros</a></h2>
402402
<p>The above is a bit tedious, so instead you can use the <code>script_bindings</code> macro, which applies to impl blocks like so:</p>
403-
<pre><code class="language-rust ignore">#[script_bindings("test_fn")]
403+
<pre><code class="language-rust ignore">#[script_bindings(name = "test_fn")]
404404
impl TestStruct {
405405
/// My docs !!
406406
///

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)