fix doc
This commit is contained in:
parent
1ccb5c0f26
commit
74c26a8c71
@ -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>()
|
||||||
|
Loading…
Reference in New Issue
Block a user