summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-27 11:24:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-27 11:24:06 +0900
commit1b0f05168d802c92b1b5f870954cf503dad6e3b1 (patch)
tree6a911df805678da1de51e6aa80958182e80beaed /string.c
parent956e57f7f300894fea7a8c38b9ce0804917f2a7f (diff)
[DOC] Fix references to unary operator
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index f100f9d074..84a9d5f9ed 100644
--- a/string.c
+++ b/string.c
@@ -12266,10 +12266,10 @@ rb_enc_interned_str_cstr(const char *ptr, rb_encoding *enc)
*
* === Methods for a Frozen/Unfrozen String
*
- * - #+string:: Returns a string that is not frozen: +self+, if not frozen;
- * +self.dup+ otherwise.
- * - #-string:: Returns a string that is frozen: +self+, if already frozen;
- * +self.freeze+ otherwise.
+ * - #+@:: Returns a string that is not frozen: +self+, if not frozen;
+ * +self.dup+ otherwise.
+ * - #-@:: Returns a string that is frozen: +self+, if already frozen;
+ * +self.freeze+ otherwise.
* - #freeze:: Freezes +self+, if not already frozen; returns +self+.
*
* === Methods for Querying