fix doc
This commit is contained in:
@@ -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>()
|
||||||
|
Reference in New Issue
Block a user