From 00e2a63a8483b40d1f29bbd71194a57b7485d65f Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 17 Oct 2022 20:05:49 +0100 Subject: [PATCH] doc: Minor fix in coding-style.rst --- doc/contributing/source/coding-style.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/contributing/source/coding-style.rst b/doc/contributing/source/coding-style.rst index 1db8e53df..0920fef17 100644 --- a/doc/contributing/source/coding-style.rst +++ b/doc/contributing/source/coding-style.rst @@ -976,13 +976,13 @@ the |ns3| smart pointer class ``Ptr`` should be used in boolean comparisons as f for Ptr<> p, do not use: use instead: ======================== ================================= - if (p != 0) {...} if (p) {...} - if (p != NULL) {...} - if (p != nullptr {...} + if (p != nullptr) {...} if (p) {...} + if (p != NULL) {...} + if (p != 0) {...} if (p) {...} - if (p == 0) {...} if (!p) {...} - if (p == NULL) {...} - if (p == nullptr {...} + if (p == nullptr) {...} if (!p) {...} + if (p == NULL) {...} + if (p == 0) {...} NS_ASSERT... (p != 0, ...) NS_ASSERT... (p, ...) NS_ABORT... (p != 0, ...) NS_ABORT... (p, ...)