summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Orleans <door@hey.com>2023-12-15 19:37:40 -0500
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-19 22:11:11 +0900
commit1822acdf336d53a2c143b29583c3ca21a9a224f4 (patch)
tree29578fdffd7bd6a887093ffe03e88c5e2c8ba84f
parentf9a48548cf3ef54fc0a385ccd78c708737055ecc (diff)
[DOC] remove reference to pre-3.0 splat operator behavior
-rw-r--r--doc/syntax/calling_methods.rdoc12
1 files changed, 0 insertions, 12 deletions
diff --git a/doc/syntax/calling_methods.rdoc b/doc/syntax/calling_methods.rdoc
index da061dbfdb..6cc8678450 100644
--- a/doc/syntax/calling_methods.rdoc
+++ b/doc/syntax/calling_methods.rdoc
@@ -322,18 +322,6 @@ Both are equivalent to:
my_method(1, 2, 3)
-If the method accepts keyword arguments, the splat operator will convert a
-hash at the end of the array into keyword arguments:
-
- def my_method(a, b, c: 3)
- end
-
- arguments = [1, 2, { c: 4 }]
- my_method(*arguments)
-
-Note that this behavior is currently deprecated and will emit a warning.
-This behavior will be removed in Ruby 3.0.
-
You may also use the <code>**</code> (described next) to convert a Hash into
keyword arguments.