Skip to content

Commit

Permalink
Update documentation of traits to match the expected argument name (#447
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alerque authored Sep 6, 2024
1 parent 7272e40 commit 9c86eef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R>(&self, name: &str, args: impl IntoLuaMulti) -> Result<R>
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"`
Expand All @@ -51,15 +51,15 @@ 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.
fn call_function<R>(&self, name: &str, args: impl IntoLuaMulti) -> Result<R>
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"`
Expand Down

0 comments on commit 9c86eef

Please sign in to comment.