Skip to content

Commit 6903e3e

Browse files
committed
Fix pluralization
1 parent 683803e commit 6903e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/varinfo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ function _show_varnames(io::IO, vi)
955955
push!(group, vn)
956956
end
957957

958-
print(io, length(groups), " variables (")
958+
print(io, length(groups), length(groups) == 1 ? " variable " : " variables ", "(")
959959
join(io, Iterators.take(keys(groups), _MAX_VARS_SHOWN), ", ")
960960
length(groups) > _MAX_VARS_SHOWN && print(io, ", ...")
961961
print(io, "), dimension ", sum(prod(size(md.vals[md.ranges[md.idcs[vn]]])) for vn in vns))
@@ -968,7 +968,7 @@ function Base.show(io::IO, vi::UntypedVarInfo)
968968
print(io, ")")
969969
end
970970

971-
# Add a new entry to VarInfo
971+
972972
"""
973973
push!(vi::VarInfo, vn::VarName, r, dist::Distribution)
974974

0 commit comments

Comments
 (0)