Skip to content

Commit b046c6c

Browse files
committed
Update per copilot code review with a tweak
1 parent 2dea52b commit b046c6c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

hub/apps/windows-dotnet-maui/walkthrough-first-app.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,8 @@ Now that you have your first .NET MAUI app running on Windows, let's add some MV
9999
{
100100
count++;
101101

102-
message = $"Clicked {count} time";
103-
104102
// Pluralize the message if the count is greater than 1
105-
if (count > 1)
106-
message += "s";
103+
message = count == 1 ? $"Clicked {count} time" : $"Clicked {count} times";
107104

108105
WeakReferenceMessenger.Default.Send(new CountChangedMessage(message));
109106
}

0 commit comments

Comments
 (0)