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(&matcher)){ warn("'%d' is not a valid index in profile", *index); } else if (const Path* path = std::get_if(&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);