From 566c256257c2dc71d592a9204d5bffcbbcc6764e Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sat, 31 Dec 2022 01:09:46 +0100 Subject: [PATCH 1/2] ArgumentCountError is not limited to user-defined stuff. For example strlen(); generates ArgumentCountError and is not a user-defined function. --- language/predefined/argumentcounterror.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/predefined/argumentcounterror.xml b/language/predefined/argumentcounterror.xml index 67763585d3a8..ed4e7ae50cc4 100644 --- a/language/predefined/argumentcounterror.xml +++ b/language/predefined/argumentcounterror.xml @@ -11,7 +11,7 @@ &reftitle.intro; ArgumentCountError is thrown - when too few arguments are passed to a user-defined function or method. + when too few arguments are passed to a function or method. From ef794bec44bd05109c197bfe484ced03db30e7a8 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sat, 31 Dec 2022 17:12:35 +0100 Subject: [PATCH 2/2] re-word it, the problem is "incorrect number of arguments" --- language/predefined/argumentcounterror.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/predefined/argumentcounterror.xml b/language/predefined/argumentcounterror.xml index ed4e7ae50cc4..d45ecf96b763 100644 --- a/language/predefined/argumentcounterror.xml +++ b/language/predefined/argumentcounterror.xml @@ -11,7 +11,7 @@ &reftitle.intro; ArgumentCountError is thrown - when too few arguments are passed to a function or method. + when a function or method is called with an incorrect number of arguments.