Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Better guard method name.
The guard is really against the Ruby nil type, not Java's null.
  • Loading branch information
nirvdrum committed Nov 19, 2014
1 parent a72cc46 commit a7d0d34
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -38,12 +38,12 @@ public boolean xor(RubyNilClass other) {
return false;
}

@Specialization(guards = "isNotNull")
@Specialization(guards = "isNotNil")
public boolean xor(RubyObject other) {
return true;
}

static boolean isNotNull(RubyObject o) {
static boolean isNotNil(RubyObject o) {
return ! (o instanceof RubyNilClass);
}

Expand Down

0 comments on commit a7d0d34

Please sign in to comment.