Skip to content

Commit

Permalink
rename X, Y to a, b
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerarnon committed Sep 4, 2018
1 parent 1ad3601 commit 988fce9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LazySet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ julia> Ball1([0.], 1.) == Ball2([0.], 1.)
false
```
"""
function ==(X::LazySet, Y::LazySet)
function ==(a::LazySet, b::LazySet)
# if the common supertype of a and b is abstract, they cannot be compared
if Compat.isabstracttype(promote_type(typeof(X), typeof(Y)))
if Compat.isabstracttype(promote_type(typeof(a), typeof(b)))
return false
end

for f in fieldnames(X)
if getfield(X, f) != getfield(Y, f)
for f in fieldnames(a)
if getfield(a, f) != getfield(b, f)
return false
end
end
Expand Down

0 comments on commit 988fce9

Please sign in to comment.