ksys: Fix typos in SafeDelete comments

This commit is contained in:
Léo Lam 2022-02-09 03:01:09 +01:00
parent 5f92a7b959
commit 2028797c8a
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 2 additions and 2 deletions

View File

@ -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 <typename T>
@ -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 <typename T>