Skip to content

Commit ce50a0b

Browse files
authored
Fix typo
`#[init(uninit = val)]` -> `#[init(invalid = val)]`
1 parent d4fb159 commit ce50a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/obj/oneditor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ use crate::registry::property::{BuiltinExport, Export, Var};
114114
/// `OnEditor<T>` can be used with other built-ins to provide extra validation logic and making sure that given properties has been set.
115115
/// Example usage might be checking if entities has been granted properly generated id.
116116
///
117-
/// In such cases the value which will be deemed invalid **must** be specified with `#[init(uninit = val)]`.
117+
/// In such cases the value which will be deemed invalid **must** be specified with `#[init(invalid = val)]`.
118118
/// Given `val` will be used to represent uninitialized `OnEditor<T>` in the Godot editor.
119119
/// Accessing uninitialized value will cause the panic.
120120
///

0 commit comments

Comments
 (0)