From 26b53f353e80b929b496b1a070ae49eaa51f1e7e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 27 Jun 2025 17:02:33 +0900 Subject: [PATCH] mruby-string-ext: remove remaining String#insert comment --- mrbgems/mruby-string-ext/mrblib/string.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mrbgems/mruby-string-ext/mrblib/string.rb b/mrbgems/mruby-string-ext/mrblib/string.rb index 3e56ab76e..7daa08b70 100644 --- a/mrbgems/mruby-string-ext/mrblib/string.rb +++ b/mrbgems/mruby-string-ext/mrblib/string.rb @@ -1,22 +1,5 @@ class String - ## - # call-seq: - # str.insert(index, other_str) -> str - # - # Inserts other_str before the character at the given - # index, modifying str. Negative indices count from the - # end of the string, and insert after the given character. - # The intent is insert aString so that it starts at the given - # index. - # - # "abcd".insert(0, 'X') #=> "Xabcd" - # "abcd".insert(3, 'X') #=> "abcXd" - # "abcd".insert(4, 'X') #=> "abcdX" - # "abcd".insert(-3, 'X') #=> "abXcd" - # "abcd".insert(-1, 'X') #=> "abcdX" - # - ## # Call the given block for each character of # +self+.