Fix doc comments.

This commit is contained in:
Stephen Chung
2022-08-10 12:48:37 +08:00
parent 8dc7137913
commit 255af006ee
8 changed files with 50 additions and 51 deletions

View File

@@ -1924,9 +1924,7 @@ impl Module {
/// cross-call each other.
///
/// Functions in the global namespace, plus all functions defined in the [`Module`], are
/// _merged_ into a _unified_ namespace before each call.
///
/// Therefore, all functions will be found.
/// _merged_ into a _unified_ namespace. Therefore, all functions will be found.
///
/// # Example
///
@@ -1959,16 +1957,14 @@ impl Module {
/// cross-call each other.
///
/// Functions in the global namespace, plus all functions defined in the [`Module`], are
/// _merged_ into a _unified_ namespace before each call.
///
/// Therefore, all functions will be found.
/// _merged_ into a _unified_ namespace. Therefore, all functions will be found.
///
/// # WARNING - Low Level API
///
/// This function is very low level.
///
/// In particular, the [`global`][crate::eval::GlobalRuntimeState] parameter allows the
/// entire calling environment to be encapsulated, including automatic global constants.
/// In particular, the [`global`][crate::GlobalRuntimeState] parameter allows the entire
/// calling environment to be encapsulated, including automatic global constants.
#[cfg(not(feature = "no_module"))]
pub fn eval_ast_as_new_raw(
engine: &crate::Engine,