Rename calc_fn_spec to calc_fn_hash.

This commit is contained in:
Stephen Chung 2020-09-11 22:24:44 +08:00
parent d1ab9a2848
commit a75aba8a85
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ pub use result::EvalAltResult;
pub use scope::Scope; pub use scope::Scope;
pub use syntax::{EvalContext, Expression}; pub use syntax::{EvalContext, Expression};
pub use token::Position; pub use token::Position;
pub use utils::calc_fn_spec as calc_fn_hash; pub use utils::calc_fn_hash;
pub use rhai_codegen::*; pub use rhai_codegen::*;

View File

@ -69,7 +69,7 @@ impl BuildHasher for StraightHasherBuilder {
/// # Note /// # Note
/// ///
/// The first module name is skipped. Hashing starts from the _second_ module in the chain. /// The first module name is skipped. Hashing starts from the _second_ module in the chain.
pub fn calc_fn_spec<'a>( pub fn calc_fn_hash<'a>(
modules: impl Iterator<Item = &'a str>, modules: impl Iterator<Item = &'a str>,
fn_name: &str, fn_name: &str,
num: usize, num: usize,