Skip to content

Commit

Permalink
[Truffle] - Using toString() method to compare a RubyString with a Ru…
Browse files Browse the repository at this point in the history
…bySymbol.
  • Loading branch information
lucasallan committed Feb 7, 2014
1 parent f55de7b commit ddc014d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean equal(RubyString a, RubyString b) {

@Specialization
public boolean equal(RubyString a, RubySymbol b) {
return a.toString().equals(b.inspect());
return a.toString().equals(b.toString());
}
}

Expand Down

0 comments on commit ddc014d

Please sign in to comment.