diff --git a/crates/bevy_reflect/src/func/function.rs b/crates/bevy_reflect/src/func/function.rs index 11aa6b14e9..0d8e94ca95 100644 --- a/crates/bevy_reflect/src/func/function.rs +++ b/crates/bevy_reflect/src/func/function.rs @@ -52,8 +52,10 @@ pub trait Function: PartialReflect + Debug { /// 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. + /// + /// [overloaded]: crate::func#overloading-functions fn arg_count(&self) -> ArgCount { self.info().arg_count() } diff --git a/crates/bevy_reflect/src/func/info.rs b/crates/bevy_reflect/src/func/info.rs index 2e5495fefa..797b97e7e1 100644 --- a/crates/bevy_reflect/src/func/info.rs +++ b/crates/bevy_reflect/src/func/info.rs @@ -146,8 +146,10 @@ impl FunctionInfo { /// 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. + /// + /// [overloaded]: crate::func#overloading-functions pub fn arg_count(&self) -> ArgCount { self.arg_count }