Skip to content

Commit

Permalink
Try to fix a bug for doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergu committed Dec 13, 2024
1 parent bb13f1c commit bfc20d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuantumNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit bfc20d6

Please sign in to comment.