From 84a477d78d4c2e93ebfb09c23ac6650866129cdd Mon Sep 17 00:00:00 2001 From: Mario Reder Date: Tue, 11 Sep 2018 07:25:08 +0200 Subject: [PATCH] doc: Add number suffix hint for JS function calls --- guide/src/reference/receiving-js-closures-in-rust.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guide/src/reference/receiving-js-closures-in-rust.md b/guide/src/reference/receiving-js-closures-in-rust.md index 6d78d5ec2..bf463285c 100644 --- a/guide/src/reference/receiving-js-closures-in-rust.md +++ b/guide/src/reference/receiving-js-closures-in-rust.md @@ -29,3 +29,6 @@ impl VecU32 { } } ``` + +Since Rust has no function overloading, the `call#` method also requires a +number representing the amount of arguments passed to the JavaScript closure.