Skip to content

Commit

Permalink
Merge pull request #248 from leres/master
Browse files Browse the repository at this point in the history
A little more plural is needed.
  • Loading branch information
dexterbg committed Aug 11, 2019
2 parents 80d8362 + 9f7891f commit 8b03eaa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ void location_status(int verbosity, OvmsWriter* writer, OvmsCommand* cmd, int ar
MyLocations.m_park_latitude,
MyLocations.m_park_longitude);
n = MyLocations.m_locations.size();
writer->printf("There are %d location%s defined\n", n, n == 1 ? "" : "s");
writer->printf("There %s %d location%s defined\n",
n == 1 ? "is" : "are", n, n == 1 ? "" : "s");

bool found = false;
for (LocationMap::iterator it=MyLocations.m_locations.begin(); it!=MyLocations.m_locations.end(); ++it)
Expand Down

0 comments on commit 8b03eaa

Please sign in to comment.