Skip to content

Commit

Permalink
doc: the Napi::ObjectWrap example does not compile
Browse files Browse the repository at this point in the history
The current example does not compile using GCC 4.8.

PR-URL: nodejs/node-addon-api#339
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
  • Loading branch information
kevindavies8 committed Sep 18, 2018
1 parent b7aa0b9 commit 285e4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1407,8 +1407,8 @@ namespace Napi {
/// public:
/// static void Initialize(Napi::Env& env, Napi::Object& target) {
/// Napi::Function constructor = DefineClass(env, "Example", {
/// InstanceAccessor("value", &GetSomething, &SetSomething),
/// InstanceMethod("doSomething", &DoSomething),
/// InstanceAccessor("value", &Example::GetSomething, &Example::SetSomething),
/// InstanceMethod("doSomething", &Example::DoSomething),
/// });
/// target.Set("Example", constructor);
/// }
Expand Down

0 comments on commit 285e4ff

Please sign in to comment.