Skip to content

Commit

Permalink
[Truffle] Switched to a more rope-friendly implementation for String#…
Browse files Browse the repository at this point in the history
…prepend.
  • Loading branch information
nirvdrum committed Dec 16, 2016
1 parent 98590ba commit b720575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/string.rb
Expand Up @@ -713,8 +713,7 @@ def inspect
end

def prepend(other)
self[0, 0] = other
self
replace(StringValue(other) + self)
end

def upto(stop, exclusive=false)
Expand Down

0 comments on commit b720575

Please sign in to comment.