Fix tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! This crate contains procedural macros to make creating Rhai plugin-modules much easier.
|
||||
//!
|
||||
//! # Export an Entire Rust Module to a Rhai Module
|
||||
//! # Export an Entire Rust Module to a Rhai `Module`
|
||||
//!
|
||||
//! ```
|
||||
//! use rhai::{EvalAltResult, FLOAT};
|
||||
@@ -32,7 +32,7 @@
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! # Export a Rust Function to a Rhai Module
|
||||
//! # Register a Rust Function with a Rhai `Module`
|
||||
//!
|
||||
//! ```
|
||||
//! use rhai::{EvalAltResult, FLOAT, Module, RegisterFn};
|
||||
@@ -63,7 +63,7 @@
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! # Exporting a Function to an Engine
|
||||
//! # Register a Plugin Function with an `Engine`
|
||||
//!
|
||||
//! ```
|
||||
//! use rhai::{EvalAltResult, FLOAT, Module, RegisterFn};
|
||||
@@ -106,7 +106,7 @@ mod test;
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_fn]
|
||||
@@ -138,7 +138,7 @@ pub fn export_fn(
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_module]
|
||||
@@ -168,7 +168,7 @@ pub fn export_module(
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_module]
|
||||
@@ -203,7 +203,7 @@ pub fn exported_module(module_path: proc_macro::TokenStream) -> proc_macro::Toke
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_module]
|
||||
@@ -232,7 +232,7 @@ pub fn combine_with_exported_module(args: proc_macro::TokenStream) -> proc_macro
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_fn]
|
||||
@@ -262,7 +262,7 @@ pub fn register_exported_fn(args: proc_macro::TokenStream) -> proc_macro::TokenS
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```,no_run
|
||||
/// use rhai::plugin::*;
|
||||
///
|
||||
/// #[export_fn]
|
||||
|
Reference in New Issue
Block a user