summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIvanov-Anton <anton.i@didww.com>2023-07-18 13:23:27 +0300
committerGitHub <noreply@github.com>2023-07-18 19:23:27 +0900
commitb89b7d8fdc76b520cafc31566524f3054439d5d3 (patch)
tree7be2e1e70f47e0c1abd566fec750f0d3c3462b5a /doc
parent56c8dab46891bb21b637ec64903bb0a38bb5d2a3 (diff)
[DOC] Fix a magic comment in the section for `experimental_copy`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8087 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/comments.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/comments.rdoc b/doc/syntax/comments.rdoc
index dbc7816984..00d19d588a 100644
--- a/doc/syntax/comments.rdoc
+++ b/doc/syntax/comments.rdoc
@@ -196,7 +196,7 @@ The method Module#const_set is not affected.
In this mode, all values assigned to constants are deeply copied and
made shareable. It is safer mode than +experimental_everything+.
- # shareable_constant_value: experimental_everything
+ # shareable_constant_value: experimental_copy
var = [{foo: []}]
var.frozen? # => false (assignment was made to local variable)
X = var # => calls `Ractor.make_shareable(var, copy: true)`