aboutsummaryrefslogtreecommitdiff
path: root/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'list.cpp')
-rw-r--r--list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/list.cpp b/list.cpp
index 873dfe9..593a87e 100644
--- a/list.cpp
+++ b/list.cpp
@@ -45,7 +45,7 @@ List<T> *append(List<T> *lst, T value)
template <typename T>
std::ostream& operator<<(std::ostream& ostream, const List<T> *lst)
{
- if (lst == NULL)
+ if (!lst)
return ostream;
ostream << "|" << lst->value << lst->next;
return ostream;