Skip to content

Commit 9c86eef

Browse files
authored
Update documentation of traits to match the expected argument name (#447)
1 parent 7272e40 commit 9c86eef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/traits.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ pub trait ObjectLike: Sealed {
3333
where
3434
R: FromLuaMulti;
3535

36-
/// Gets the function associated to `key` from the object and calls it,
36+
/// Gets the function associated to key `name` from the object and calls it,
3737
/// passing the object itself along with `args` as function arguments.
3838
fn call_method<R>(&self, name: &str, args: impl IntoLuaMulti) -> Result<R>
3939
where
4040
R: FromLuaMulti;
4141

42-
/// Gets the function associated to `key` from the object and asynchronously calls it,
42+
/// Gets the function associated to key `name` from the object and asynchronously calls it,
4343
/// passing the object itself along with `args` as function arguments.
4444
///
4545
/// Requires `feature = "async"`
@@ -51,15 +51,15 @@ pub trait ObjectLike: Sealed {
5151
where
5252
R: FromLuaMulti;
5353

54-
/// Gets the function associated to `key` from the object and calls it,
54+
/// Gets the function associated to key `name` from the object and calls it,
5555
/// passing `args` as function arguments.
5656
///
5757
/// This might invoke the `__index` metamethod.
5858
fn call_function<R>(&self, name: &str, args: impl IntoLuaMulti) -> Result<R>
5959
where
6060
R: FromLuaMulti;
6161

62-
/// Gets the function associated to `key` from the object and asynchronously calls it,
62+
/// Gets the function associated to key `name` from the object and asynchronously calls it,
6363
/// passing `args` as function arguments.
6464
///
6565
/// Requires `feature = "async"`

0 commit comments

Comments
 (0)