rename variable to fit the lower camel case naming

This commit is contained in:
Andreas Zweili 2017-07-05 15:20:17 +02:00
parent da1cc7d7f4
commit 46bd30a722
1 changed files with 4 additions and 4 deletions

View File

@ -9,11 +9,11 @@ namespace se_12_log_entry
public static void Main(string[] args) public static void Main(string[] args)
{ {
Stack<LogEntry> logEntries = new Stack<LogEntry>(); Stack<LogEntry> logEntries = new Stack<LogEntry>();
int id_counter = 0; int idCounter = 0;
while (id_counter < 11) while (idCounter < 11)
{ {
logEntries.Push(new LogEntry(id_counter, DateTime.Now)); logEntries.Push(new LogEntry(idCounter, DateTime.Now));
id_counter++; idCounter++;
LogEntry newestEntry = logEntries.Peek(); LogEntry newestEntry = logEntries.Peek();
Console.WriteLine("ID:" Console.WriteLine("ID:"