Skip to content

Commit

Permalink
Fix type in error message (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan authored Sep 15, 2021
1 parent 7514576 commit 52f534c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/value.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ end

Base.isless(x::CategoricalValue, y::SupportedTypes) =
throw(ArgumentError("cannot compare a `CategoricalValue` to value `v` of type " *
"`$(typeof(x))`: wrap `v` using `CategoricalValue(v, catvalue)` " *
"`$(typeof(y))`: wrap `v` using `CategoricalValue(v, catvalue)` " *
"or `CategoricalValue(v, catarray)` first"))
Base.isless(y::SupportedTypes, x::CategoricalValue) = isless(x, y)

Expand All @@ -175,7 +175,7 @@ end

Base.:<(x::CategoricalValue, y::SupportedTypes) =
throw(ArgumentError("cannot compare a `CategoricalValue` to value `v` of type " *
"`$(typeof(x))`: wrap `v` using `CategoricalValue(v, catvalue)` " *
"`$(typeof(y))`: wrap `v` using `CategoricalValue(v, catvalue)` " *
"or `CategoricalValue(v, catarray)` first"))
Base.:<(y::SupportedTypes, x::CategoricalValue) = x < y

Expand Down

0 comments on commit 52f534c

Please # to comment.