summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorJunichi Ito <[email protected]>2024-12-22 12:54:35 +0900
committerKevin Newton <[email protected]>2025-01-05 20:50:53 -0500
commitc8e3d745fabc2060a6e5c7342c881bb31f58f5f5 (patch)
tree701745e377726544f740bafaebaee2ed3c315c03 /proc.c
parent8a9f1e600fc151f4b01d51c43a2613fd0a71a79c (diff)
Use a single quote instead of a backtick for error messages
Fix https://bugs.ruby-lang.org/issues/20977
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12424
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index fdbec86eba..68f1bfc35c 100644
--- a/proc.c
+++ b/proc.c
@@ -4300,7 +4300,7 @@ proc_ruby2_keywords(VALUE procval)
* [1, 2, 3].each { |x| p it }
* # syntax error found (SyntaxError)
* # [1, 2, 3].each { |x| p it }
- * # ^~ `it` is not allowed when an ordinary parameter is defined
+ * # ^~ 'it' is not allowed when an ordinary parameter is defined
*
* But if a local name (variable or method) is available, it would be used:
*
@@ -4348,7 +4348,7 @@ proc_ruby2_keywords(VALUE procval)
* Numbered parameters can't be mixed with +it+ either:
*
* [10, 20, 30].map { _1 + it }
- * # SyntaxError: `it` is not allowed when a numbered parameter is already used
+ * # SyntaxError: 'it' is not allowed when a numbered parameter is already used
*
* To avoid conflicts, naming local variables or method
* arguments +_1+, +_2+ and so on, causes an error.