From bfc20d64571f66c98744814e8dd30cb38778f9db Mon Sep 17 00:00:00 2001 From: waltergu Date: Sat, 14 Dec 2024 01:45:10 +0800 Subject: [PATCH] Try to fix a bug for doc. --- src/QuantumNumbers.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QuantumNumbers.jl b/src/QuantumNumbers.jl index 400b152a..3c6be593 100644 --- a/src/QuantumNumbers.jl +++ b/src/QuantumNumbers.jl @@ -202,7 +202,7 @@ struct AbelianQuantumNumberProd{T<:Tuple{Vararg{SimpleAbelianQuantumNumber}}} <: end @inline Base.hash(qn::AbelianQuantumNumberProd, h::UInt) = hash(values(qn), h) @inline Base.show(io::IO, qn::AbelianQuantumNumberProd) = @printf io "Abelian[%s]%s" join(fieldtypes(fieldtype(typeof(qn), :contents)), " ⊠ ") values(qn) -@inline Base.show(io::IO, ::Type{T}) where {T<:AbelianQuantumNumberProd} = @printf io "%s" join(fieldtypes(fieldtype(T, :contents)), " ⊠ ") +@inline Base.show(io::IO, ::Type{AbelianQuantumNumberProd{T}}) where {T<:Tuple{Vararg{SimpleAbelianQuantumNumber}}} = @printf io "%s" join(fieldtypes(T), " ⊠ ") @inline Base.zero(::Type{AbelianQuantumNumberProd{T}}) where {T<:Tuple{Vararg{SimpleAbelianQuantumNumber}}} = AbelianQuantumNumberProd(map(zero, fieldtypes(T))) @inline periods(::Type{AbelianQuantumNumberProd{T}}) where {T<:Tuple{Vararg{SimpleAbelianQuantumNumber}}} = map(period, fieldtypes(T))