Skip to content

Commit 8aa4263

Browse files
authored
docs: fix typos
1 parent 8b34042 commit 8aa4263

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/Summary/controlling-script-bindings.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Controlling Script Bindings
22

3-
In this book we reffer to anything accessible by a script, which allows it to communicate with your Rust code a `binding` (which in previous versions was more generically referred to as a script API).
3+
In this book we refer to anything accessible by a script, which allows it to communicate with your Rust code a `binding` (which in previous versions was more generically referred to as a script API).
44

55
The "binding" here being used as in: binding `script` code to `rust` code.
66

@@ -17,16 +17,16 @@ Everything callable by scripts must first be registered in the dynamic function
1717
In order for a function to be callable by a script it must adhere to a few requirements:
1818
- Each argument must implement `FromScript`.
1919
- Each return type must implement `IntoScript`.
20-
- Each argument must also implement `GetInnerTypeDependencies`
21-
- Each return type must also implement `GetInnerTypeDependencies`
20+
- Each argument must also implement `GetTypeDependencies`
21+
- Each return type must also implement `GetTypeDependencies`
2222

2323
The into/from requirements allow us to convert these types to `ScriptValue`'s, and each supported scripting language can then marshall these into the script.
2424

2525
Note these types are implemented for primitives, but if you want to interact with one of your `Reflect` implementing types, you will need to use one of `Ref<T>`, `Mut<T>` or `Val<T>` wrappers in place of `&T`, `&mut T` and `T` respectively.
2626

2727
These wrappers enable us to safely interact with bevy, and claim any necessary mutex'es on `Resources`, `Components` or `Allocations`.
2828

29-
The `GetInnerTypeDependencies`, trait is simply a local trait alias for `GetTypeRegistration` with less strict type requirements. It allows us to register all the types necessary for the function calls, so that you don't have to register anything manually. If your type implements `GetTypeRegistration` you should not face any issues on this front.
29+
The `GetTypeDependencies`, trait is simply a local trait alias for `GetTypeRegistration` with less strict type requirements. It allows us to register all the types necessary for the function calls, so that you don't have to register anything manually. If your type implements `GetTypeRegistration` you should not face any issues on this front.
3030

3131
## Registering Script Functions
3232

@@ -130,4 +130,4 @@ There are a few reserved functions that you can override by registering them on
130130
| display_ref | a display function, used for displaying a reference to a value |||
131131
| display_value | a display function, used for displaying a mutable reference to a value |||
132132

133-
In this context `overridable` indicates whether language implementations will look for a specific function on your type before looking at the generic `ReflectReference` namespace. You can still remove the existing registration for these functions on the `ReflectReference` namespace if you want to replace them with your own implementation.
133+
In this context `overridable` indicates whether language implementations will look for a specific function on your type before looking at the generic `ReflectReference` namespace. You can still remove the existing registration for these functions on the `ReflectReference` namespace if you want to replace them with your own implementation.

0 commit comments

Comments
 (0)