diff --git a/src/lib.rs b/src/lib.rs index 4939e119..c0d00fab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,7 @@ pub use result::EvalAltResult; pub use scope::Scope; pub use syntax::{EvalContext, Expression}; pub use token::Position; -pub use utils::calc_fn_spec as calc_fn_hash; +pub use utils::calc_fn_hash; pub use rhai_codegen::*; diff --git a/src/utils.rs b/src/utils.rs index ee448260..2587262b 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -69,7 +69,7 @@ impl BuildHasher for StraightHasherBuilder { /// # Note /// /// 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, fn_name: &str, num: usize,