mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
delete needless output in String#[]=
This commit is contained in:
@@ -133,7 +133,6 @@ class String
|
||||
def []=(pos, value)
|
||||
b = self[0, pos]
|
||||
a = self[pos+1..-1]
|
||||
p [b, value, a].join('')
|
||||
self.replace([b, value, a].join(''))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user