From 41328d4a7a5688455c8ae156c15782d757a49c33 Mon Sep 17 00:00:00 2001 From: Christian Wesselhoeft Date: Tue, 9 Jan 2024 14:10:42 -0700 Subject: [PATCH 1/2] bind-to-js-function.mdx: Clarify `this` binding documentation --- pages/docs/manual/latest/bind-to-js-function.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/manual/latest/bind-to-js-function.mdx b/pages/docs/manual/latest/bind-to-js-function.mdx index 655d6d4c8..7be8a7467 100644 --- a/pages/docs/manual/latest/bind-to-js-function.mdx +++ b/pages/docs/manual/latest/bind-to-js-function.mdx @@ -376,7 +376,7 @@ x.onload = function (v) { -`this` has its first parameter is reserved for `this` and for arity of 0, there is no need for a redundant `unit` type. +`@this` reserves the first parameter for `this`, and for arity of 0, there is no need for a redundant `unit` type. ## Function Nullable Return Value Wrapping From 559a804f098a31968e6e659e43350f378150a848 Mon Sep 17 00:00:00 2001 From: Christian Wesselhoeft Date: Tue, 9 Jan 2024 14:11:57 -0700 Subject: [PATCH 2/2] Update bind-to-js-function.mdx --- pages/docs/manual/latest/bind-to-js-function.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/manual/latest/bind-to-js-function.mdx b/pages/docs/manual/latest/bind-to-js-function.mdx index 7be8a7467..0e26ddeb4 100644 --- a/pages/docs/manual/latest/bind-to-js-function.mdx +++ b/pages/docs/manual/latest/bind-to-js-function.mdx @@ -376,7 +376,7 @@ x.onload = function (v) { -`@this` reserves the first parameter for `this`, and for arity of 0, there is no need for a redundant `unit` type. +`@this` reserves the first parameter for the `this` value, and for arity of 0, there is no need for a redundant `unit` type. ## Function Nullable Return Value Wrapping