Skip to content

Commit bcde755

Browse files
authored
Improve Cpp::Destruct documentation and param name (#725)
1 parent 0aa859b commit bcde755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/CppInterOp/CppInterOp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,12 +921,13 @@ CPPINTEROP_API TCppObject_t Construct(TCppScope_t scope, void* arena = nullptr,
921921
/// Destroys one or more objects of a class
922922
/// \param[in] This this pointer of the object to destruct. Can also be the
923923
/// starting address of an array of objects
924+
/// \param[in] scope Class to destruct
924925
/// \param[in] withFree if true, we call operator delete/free, else just the
925926
/// destructor
926927
/// \param[in] count indicate the number of objects to destruct, if \c This
927928
/// points to an array of objects
928929
/// \returns true if wrapper generation and invocation succeeded.
929-
CPPINTEROP_API bool Destruct(TCppObject_t This, TCppConstScope_t type,
930+
CPPINTEROP_API bool Destruct(TCppObject_t This, TCppConstScope_t scope,
930931
bool withFree = true, TCppIndex_t count = 0UL);
931932

932933
/// @name Stream Redirection

0 commit comments

Comments
 (0)