summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-12-08 09:26:30 -0500
committergit <svn-admin@ruby-lang.org>2023-12-08 14:34:34 +0000
commit892b5f10d52bacaf8c6b430d0e9a95dc0ea36834 (patch)
tree7012c5a49cbf7434ae47b309f8246c32ae0d051f /prism
parent0204523fe7ccafba30a4d2465946095f2603c7eb (diff)
[ruby/prism] More closely match CRuby error messages
https://github.com/ruby/prism/commit/1ed07a0c6d
Diffstat (limited to 'prism')
-rw-r--r--prism/diagnostic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/diagnostic.c b/prism/diagnostic.c
index 925ccce4f0..c537d373aa 100644
--- a/prism/diagnostic.c
+++ b/prism/diagnostic.c
@@ -192,7 +192,7 @@ static const char* const diagnostic_messages[PM_DIAGNOSTIC_ID_LEN] = {
[PM_ERR_MULTI_ASSIGN_MULTI_SPLATS] = "multiple splats in multiple assignment",
[PM_ERR_NOT_EXPRESSION] = "expected an expression after `not`",
[PM_ERR_NUMBER_LITERAL_UNDERSCORE] = "number literal ending with a `_`",
- [PM_ERR_NUMBERED_PARAMETER_NOT_ALLOWED] = "numbered parameters are not allowed alongside explicit parameters",
+ [PM_ERR_NUMBERED_PARAMETER_NOT_ALLOWED] = "numbered parameters are not allowed when an ordinary parameter is defined",
[PM_ERR_NUMBERED_PARAMETER_OUTER_SCOPE] = "numbered parameter is already used in outer scope",
[PM_ERR_OPERATOR_MULTI_ASSIGN] = "unexpected operator for a multiple assignment",
[PM_ERR_OPERATOR_WRITE_ARGUMENTS] = "unexpected operator after a call with arguments",
@@ -204,7 +204,7 @@ static const char* const diagnostic_messages[PM_DIAGNOSTIC_ID_LEN] = {
[PM_ERR_PARAMETER_NAME_REPEAT] = "repeated parameter name",
[PM_ERR_PARAMETER_NO_DEFAULT] = "expected a default value for the parameter",
[PM_ERR_PARAMETER_NO_DEFAULT_KW] = "expected a default value for the keyword parameter",
- [PM_ERR_PARAMETER_NUMBERED_RESERVED] = "%.2s is reserved for a numbered parameter",
+ [PM_ERR_PARAMETER_NUMBERED_RESERVED] = "%.2s is reserved for numbered parameters",
[PM_ERR_PARAMETER_ORDER] = "unexpected parameter order",
[PM_ERR_PARAMETER_SPLAT_MULTI] = "unexpected multiple `*` splat parameters",
[PM_ERR_PARAMETER_STAR] = "unexpected parameter `*`",