Skip to content

Commit c2fd281

Browse files
jishnubKristofferC
authored andcommitted
Slightly improve grammar in precompilation info text (#53700)
Uses the singular "configuration" if `length(configs) == 1`, instead of the current "configurations" (cherry picked from commit 22602a2)
1 parent 215aeb9 commit c2fd281

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/precompilation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,9 @@ function precompilepkgs(pkgs::Vector{String}=String[];
551551
else
552552
target = "project"
553553
end
554-
if length(configs) > 1 || !isempty(only(configs)[1]) # if multiple configs or only one is not default
555-
target *= " for $(length(configs)) compilation configurations..."
554+
nconfig = length(configs)
555+
if nconfig > 1 || !isempty(only(configs)[1]) # if multiple configs or only one is not default
556+
target *= " for $nconfig compilation configuration$(nconfig > 1 ? "s" : "")..."
556557
else
557558
target *= "..."
558559
end

0 commit comments

Comments
 (0)