From 9c86eefb764aeb5bc0b748b4482fc6186b3c7af1 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 6 Sep 2024 21:28:40 +0300 Subject: [PATCH] Update documentation of traits to match the expected argument name (#447) --- src/traits.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index eddbb5f7..0fd48d2b 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -33,13 +33,13 @@ pub trait ObjectLike: Sealed { where R: FromLuaMulti; - /// Gets the function associated to `key` from the object and calls it, + /// Gets the function associated to key `name` from the object and calls it, /// passing the object itself along with `args` as function arguments. fn call_method(&self, name: &str, args: impl IntoLuaMulti) -> Result where R: FromLuaMulti; - /// Gets the function associated to `key` from the object and asynchronously calls it, + /// Gets the function associated to key `name` from the object and asynchronously calls it, /// passing the object itself along with `args` as function arguments. /// /// Requires `feature = "async"` @@ -51,7 +51,7 @@ pub trait ObjectLike: Sealed { where R: FromLuaMulti; - /// Gets the function associated to `key` from the object and calls it, + /// Gets the function associated to key `name` from the object and calls it, /// passing `args` as function arguments. /// /// This might invoke the `__index` metamethod. @@ -59,7 +59,7 @@ pub trait ObjectLike: Sealed { where R: FromLuaMulti; - /// Gets the function associated to `key` from the object and asynchronously calls it, + /// Gets the function associated to key `name` from the object and asynchronously calls it, /// passing `args` as function arguments. /// /// Requires `feature = "async"`