Link to Overloading Functions section in docs

This commit is contained in:
Gino Valente 2024-12-08 14:28:13 -07:00
parent c3b91562d1
commit 252f3897dc
2 changed files with 6 additions and 2 deletions

View file

@ -52,8 +52,10 @@ pub trait Function: PartialReflect + Debug {
/// Returns the number of arguments the function expects. /// Returns the number of arguments the function expects.
/// ///
/// For overloaded functions that can have a variable number of arguments, /// For [overloaded] functions that can have a variable number of arguments,
/// this will contain the full set of counts for all signatures. /// this will contain the full set of counts for all signatures.
///
/// [overloaded]: crate::func#overloading-functions
fn arg_count(&self) -> ArgCount { fn arg_count(&self) -> ArgCount {
self.info().arg_count() self.info().arg_count()
} }

View file

@ -146,8 +146,10 @@ impl FunctionInfo {
/// Returns the number of arguments the function expects. /// Returns the number of arguments the function expects.
/// ///
/// For overloaded functions that can have a variable number of arguments, /// For [overloaded] functions that can have a variable number of arguments,
/// this will contain the full set of counts for all signatures. /// this will contain the full set of counts for all signatures.
///
/// [overloaded]: crate::func#overloading-functions
pub fn arg_count(&self) -> ArgCount { pub fn arg_count(&self) -> ArgCount {
self.arg_count self.arg_count
} }