From 2028797c8af0a142a71b8b57e8da809d746f12a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Wed, 9 Feb 2022 03:01:09 +0100 Subject: [PATCH] ksys: Fix typos in SafeDelete comments --- src/KingSystem/Utils/SafeDelete.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KingSystem/Utils/SafeDelete.h b/src/KingSystem/Utils/SafeDelete.h index 45970340..0789f9c2 100644 --- a/src/KingSystem/Utils/SafeDelete.h +++ b/src/KingSystem/Utils/SafeDelete.h @@ -4,7 +4,7 @@ namespace ksys::util { -/// Deletes an object that was allocatd with a new expression and sets the pointer to nullptr, +/// Deletes an object that was allocated with a new expression and sets the pointer to nullptr, /// preventing it from being accidentally reused. /// It is safe for the pointer to be already nullptr. template @@ -13,7 +13,7 @@ inline void safeDelete(T*& pointer) { pointer = nullptr; } -/// Deletes an array that was allocatd with a new[] expression and sets the pointer to nullptr, +/// Deletes an array that was allocated with a new[] expression and sets the pointer to nullptr, /// preventing it from being accidentally reused. /// It is safe for the pointer to be already nullptr. template