Refer to nullptr not NULL
[folly.git] / folly / io / IOBuf.cpp
index c34b5f41213003843d67dbe21a7dd8e35f52bbb4..5698606106d38da2ddb6734ebc8517254b916d86 100644 (file)
@@ -136,7 +136,7 @@ IOBuf::SharedInfo::SharedInfo(FreeFunction fn, void* arg)
 void* IOBuf::operator new(size_t size) {
   size_t fullSize = offsetof(HeapStorage, buf) + size;
   auto* storage = static_cast<HeapStorage*>(malloc(fullSize));
-  // operator new is not allowed to return NULL
+  // operator new is not allowed to return nullptr
   if (UNLIKELY(storage == nullptr)) {
     throw std::bad_alloc();
   }