Skip to content

Commit c7d5418

Browse files
BotellaAmhdawson
authored andcommitted
doc: the Napi::ObjectWrap example does not compile
The current example does not compile using GCC 4.8. PR-URL: #339 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Nicola Del Gobbo <[email protected]>
1 parent 14c69ab commit c7d5418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

napi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,8 @@ namespace Napi {
14071407
/// public:
14081408
/// static void Initialize(Napi::Env& env, Napi::Object& target) {
14091409
/// Napi::Function constructor = DefineClass(env, "Example", {
1410-
/// InstanceAccessor("value", &GetSomething, &SetSomething),
1411-
/// InstanceMethod("doSomething", &DoSomething),
1410+
/// InstanceAccessor("value", &Example::GetSomething, &Example::SetSomething),
1411+
/// InstanceMethod("doSomething", &Example::DoSomething),
14121412
/// });
14131413
/// target.Set("Example", constructor);
14141414
/// }

0 commit comments

Comments
 (0)