Skip to content

Commit cf60d71

Browse files
committed
Change AbstractString to String in PolyVar
1 parent 561096a commit cf60d71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/var.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ end
4343

4444
struct PolyVar{C} <: AbstractVariable
4545
id::Int
46-
name::AbstractString
46+
name::String
47+
4748
function PolyVar{C}(name::AbstractString) where {C}
4849
# gensym returns something like Symbol("##42")
4950
# we first remove "##" and then parse it into an Int
5051
id = parse(Int, string(gensym())[3:end])
51-
new(id, name)
52+
new(id, convert(String, name))
5253
end
5354
end
5455

0 commit comments

Comments
 (0)