This commit is contained in:
Tristan Guichaoua 2022-08-08 17:29:03 +02:00
parent 1ccb5c0f26
commit 74c26a8c71

View File

@ -6,7 +6,7 @@ use crate::Engine;
/// # Example /// # Example
/// ///
/// ``` /// ```
/// use rhai::{Engine, RhaiCustomType}; /// use rhai::{Engine, CustomType};
/// ///
/// #[derive(Debug, Clone, Eq, PartialEq)] /// #[derive(Debug, Clone, Eq, PartialEq)]
/// struct TestStruct { /// struct TestStruct {
@ -22,7 +22,7 @@ use crate::Engine;
/// } /// }
/// } /// }
/// ///
/// impl RhaiCustomType for TestStruct { /// impl CustomType for TestStruct {
/// fn build(engine: &mut Engine) { /// fn build(engine: &mut Engine) {
/// engine /// engine
/// .register_type::<Self>() /// .register_type::<Self>()