From 7c83c73919236d4dd46ce5b2c9ece39208b60276 Mon Sep 17 00:00:00 2001 From: Richard Dodd Date: Sun, 19 Aug 2018 13:41:23 +0100 Subject: [PATCH] Comment typo --- crates/cli-support/src/js/rust2js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli-support/src/js/rust2js.rs b/crates/cli-support/src/js/rust2js.rs index 27755ae5..91045015 100644 --- a/crates/cli-support/src/js/rust2js.rs +++ b/crates/cli-support/src/js/rust2js.rs @@ -547,7 +547,7 @@ impl<'a, 'b> Rust2Js<'a, 'b> { if self.js_arguments.is_empty() { unreachable!("the last argument of a variadic must be a slice"); } - let last_arg = self.js_arguments.len() - 1; // check implies > 0 + let last_arg = self.js_arguments.len() - 1; // check implies >= 0 // The variadic part of the arguments could be passed as as a typed array in // javascript, so we cannot just do `.concat(..)`, as this seems to convert the // contents to strings (javascript is very strange).