Skip to content

Commit d2eeea5

Browse files
committed
doc: proper doc comments for Function::New
PR-URL: #117 Reviewed-By: Michael Dawson <[email protected]>
1 parent 633c47d commit d2eeea5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

napi.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,13 +776,15 @@ namespace Napi {
776776

777777
class Function : public Object {
778778
public:
779-
// Callable must implement operator() accepting a const CallbackInfo&
780-
// and return either void or Value.
779+
/// Callable must implement operator() accepting a const CallbackInfo&
780+
/// and return either void or Value.
781781
template <typename Callable>
782782
static Function New(napi_env env,
783783
Callable cb,
784784
const char* utf8name = nullptr,
785785
void* data = nullptr);
786+
/// Callable must implement operator() accepting a const CallbackInfo&
787+
/// and return either void or Value.
786788
template <typename Callable>
787789
static Function New(napi_env env,
788790
Callable cb,

0 commit comments

Comments
 (0)