From 2edf620f7c7b2e8b17f04f5bcab7b822c1a1b076 Mon Sep 17 00:00:00 2001 From: Marian Gusatu <45270790+mariangusatu@users.noreply.github.com> Date: Wed, 22 Apr 2020 12:29:33 +0300 Subject: [PATCH] Update Linked List.cpp fix: reverse check for empty list + cpplint coding style --- data_structure/Linked List.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structure/Linked List.cpp b/data_structure/Linked List.cpp index 4fcb471c3..2af3f82a3 100644 --- a/data_structure/Linked List.cpp +++ b/data_structure/Linked List.cpp @@ -44,7 +44,7 @@ void remove(int x) { } if (temp == NULL) { - std::cout << endl << x << " not found in list\n"; + std::cout << std::endl << x << " not found in list\n"; return; }