Skip to content

Commit

Permalink
Fix invalid syntax for julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Sep 20, 2023
1 parent 7f907f3 commit e476b83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tensors/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ end
function catdomain(t1::AbstractTensorMap{S,N₁,1},
t2::AbstractTensorMap{S,N₁,1}) where {S,N₁}
codomain(t1) == codomain(t2) ||
throw(SpaceMismatch("codomains of tensors to concatenate must match:\n\
$(codomain(t1))$(codomain(t2))"))
throw(SpaceMismatch("codomains of tensors to concatenate must match:\n" *
"$(codomain(t1))$(codomain(t2))"))
V1, = domain(t1)
V2, = domain(t2)
isdual(V1) == isdual(V2) ||
Expand All @@ -408,9 +408,8 @@ end
function catcodomain(t1::AbstractTensorMap{S,1,N₂},
t2::AbstractTensorMap{S,1,N₂}) where {S,N₂}
domain(t1) == domain(t2) ||
throw(SpaceMismatch("domains of tensors to concatenate must match:\n\
$(domain(t1))$(domain(t2))"))

throw(SpaceMismatch("domains of tensors to concatenate must match:\n" *
"$(domain(t1))$(domain(t2))"))
V1, = codomain(t1)
V2, = codomain(t2)
isdual(V1) == isdual(V2) ||
Expand Down

0 comments on commit e476b83

Please sign in to comment.