diff --git a/Project.toml b/Project.toml index dcfd27262..52a8e1b51 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Symbolics" uuid = "0c5d862f-8b57-4792-8d23-62f2024744c7" authors = ["Shashi Gowda "] -version = "0.1.12" +version = "0.1.13" [deps] AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d" diff --git a/src/variable.jl b/src/variable.jl index 82c77e423..7d5a69a3a 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -75,8 +75,8 @@ function rename(x::Symbolic, name) if operation(x) isa Sym @assert x isa Term @set! x.f = rename(operation(x), name) - @set! x.arguments = arguments(x) @set! x.hash = Ref{UInt}(0) + return x else error("can't rename $x to $name") end