diff --git a/list.cpp b/list.cpp index 873dfe9..593a87e 100644 --- a/list.cpp +++ b/list.cpp @@ -45,7 +45,7 @@ List *append(List *lst, T value) template std::ostream& operator<<(std::ostream& ostream, const List *lst) { - if (lst == NULL) + if (!lst) return ostream; ostream << "|" << lst->value << lst->next; return ostream;