From 59a53e10f4a4831536619a3ac0a45d2ca9b96ee2 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 11 Jan 2024 09:09:46 +0100 Subject: [PATCH] string: update documentation Signed-off-by: Simon Rozman --- include/stdex/string.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stdex/string.hpp b/include/stdex/string.hpp index eaeadcf6b..b8a47c37c 100644 --- a/include/stdex/string.hpp +++ b/include/stdex/string.hpp @@ -1681,7 +1681,7 @@ namespace stdex /// /// \param[in] str String to duplicate. Must be zero-terminated. /// - /// \return Pointer to duplicated string; or nullptr if str is nullptr. Use delete operator to free the memory. + /// \return Pointer to duplicated string; or nullptr if str is nullptr. Use delete[] operator to free the memory. /// template inline _Check_return_ _Ret_maybenull_z_ T* strdup(_In_opt_z_ const T* str) @@ -1703,7 +1703,7 @@ namespace stdex /// \param[in] str String to duplicate. /// \param[in] count Number of code units in str. /// - /// \return Pointer to duplicated string. Use delete operator to free the memory. + /// \return Pointer to duplicated string. Use delete[] operator to free the memory. /// template inline _Ret_z_ T* strndup( @@ -1723,7 +1723,7 @@ namespace stdex /// /// \param[in] str String to duplicate. Must be zero-terminated. /// - /// \return Pointer to duplicated string; or nullptr if str is nullptr. Use delete operator to free the memory. + /// \return Pointer to duplicated string; or nullptr if str is nullptr. Use delete[] operator to free the memory. /// template inline _Check_return_ _Ret_maybenull_z_ T* strndup(_In_ const T (&str)[N])