[gjs: 3/6] function: Fix outdated comment
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/6] function: Fix outdated comment
- Date: Sat, 3 Feb 2018 00:08:57 +0000 (UTC)
commit bb97af4507b9c23888324d370b3483b023c6c06d
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Jan 28 21:26:29 2018 -0800
function: Fix outdated comment
It referred to a nonexistent variable.
gi/function.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/function.cpp b/gi/function.cpp
index 060fa848..1aae10e2 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -809,7 +809,7 @@ gjs_invoke_c_function(JSContext *context,
* arguments we expect the JS function to take (which does not
* include PARAM_SKIPPED args).
*
- * @js_argc is the number of arguments that were actually passed.
+ * @args.length() is the number of arguments that were actually passed.
*/
if (args.length() > function->expected_js_argc) {
GjsAutoChar name = format_function_name(function, is_method);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]