Skip to content

Commit

Permalink
remove string interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Feb 3, 2024
1 parent 74a7c9b commit f1562d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/definitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,10 @@ Base.extrema(f::Frequencies) = (minimum(f), maximum(f))
function Base.show(io::IO, f::Frequencies)
r1 = 0:f.n_nonnegative-1
r2 = -f.n + f.n_nonnegative:-1
v = "[$r1;" * (isempty(r2) ? "" : " $r2") * "]"
print(io, "$v*$(step(f))")
print(io, "[", r1, ";")
!isempty(r2) && print(io, " ", r2)
print(io, "]*", step(f))
return nothing
end

"""
Expand Down

0 comments on commit f1562d5

Please sign in to comment.