mirror of https://github.com/zeldaret/botw.git
ksys: Fix typos in SafeDelete comments
This commit is contained in:
parent
5f92a7b959
commit
2028797c8a
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
namespace ksys::util {
|
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.
|
/// preventing it from being accidentally reused.
|
||||||
/// It is safe for the pointer to be already nullptr.
|
/// It is safe for the pointer to be already nullptr.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -13,7 +13,7 @@ inline void safeDelete(T*& pointer) {
|
||||||
pointer = nullptr;
|
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.
|
/// preventing it from being accidentally reused.
|
||||||
/// It is safe for the pointer to be already nullptr.
|
/// It is safe for the pointer to be already nullptr.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in New Issue