aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2022-02-21 10:04:04 -0600
committerGitHub <noreply@github.com>2022-02-21 10:04:04 -0600
commit3cd958849b820ba6ec80965afa6268f59c9bb650 (patch)
treee04a57c10793085ae3db3874abe5e433d8accbf6 /src/nix
parent61295b910f2f2a6f2b0d288248c946713977ff1e (diff)
Apply suggestions from code review
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/profile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index f0ce7eba8..508cbd336 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -453,7 +453,7 @@ struct CmdProfileUpgrade : virtual SourceExprCommand, MixDefaultProfile, MixProf
}
if (upgradedCount == 0) {
- for (auto matcher: matchers) {
+ for (auto & matcher : matchers) {
if (const size_t* index = std::get_if<size_t>(&matcher)){
warn("'%d' is not a valid index in profile", *index);
} else if (const Path* path = std::get_if<Path>(&matcher)){
@@ -462,7 +462,7 @@ struct CmdProfileUpgrade : virtual SourceExprCommand, MixDefaultProfile, MixProf
warn("'%s' does not match any packages in profile", regex->pattern);
}
}
- warn ("Try `nix profile list` to see the current profile.");
+ warn ("Use 'nix profile list' to see the current profile.");
}
store->buildPaths(pathsToBuild);