From 4f8fd23f7a358f55b9d52b43ba14f4ca64243afe Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 13 Jan 2024 23:00:13 +0900 Subject: [PATCH] mruby-string-ext (str_uminus): remove wrong document In mruby, deduplication of strings is not implemented (yet), so we have to remove the description from `String#-@` document. --- mrbgems/mruby-string-ext/src/string.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mrbgems/mruby-string-ext/src/string.c b/mrbgems/mruby-string-ext/src/string.c index 1209228c3..ef4a23bb3 100644 --- a/mrbgems/mruby-string-ext/src/string.c +++ b/mrbgems/mruby-string-ext/src/string.c @@ -1304,10 +1304,6 @@ str_uplus(mrb_state *mrb, mrb_value str) * * Returns a frozen, possibly pre-existing copy of the string. * - * The returned \String will be deduplicated as long as it does not have - * any instance variables set on it and is not a String subclass. - * - * String#dedup is an alias for String#-@. */ static mrb_value str_uminus(mrb_state *mrb, mrb_value str)