From 3d7605561f62fb84f0108a8cf621cf130bc5e718 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Fri, 20 Apr 2018 22:43:42 -0400 Subject: [PATCH] doc: remove "For example" expression in N-API doc PR-URL: https://github.com/nodejs/node/pull/20187 Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Vse Mozhet Byt Reviewed-By: Trivikram Kamat --- doc/api/n-api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 14ef277f535ebb..826b83e2251f32 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -927,8 +927,8 @@ convenience. If `Init` returns NULL, the parameter passed as `exports` is exported by the module. N-API modules cannot modify the `module` object but can specify anything as the `exports` property of the module. -For example, to add the method `hello` as a function so that it can be called -as a method provided by the addon: +To add the method `hello` as a function so that it can be called as a method +provided by the addon: ```C napi_value Init(napi_env env, napi_value exports) { @@ -942,7 +942,7 @@ napi_value Init(napi_env env, napi_value exports) { } ``` -For example, to set a function to be returned by the `require()` for the addon: +To set a function to be returned by the `require()` for the addon: ```C napi_value Init(napi_env env, napi_value exports) { @@ -954,8 +954,8 @@ napi_value Init(napi_env env, napi_value exports) { } ``` -For example, to define a class so that new instances can be created -(often used with [Object Wrap][]): +To define a class so that new instances can be created (often used with +[Object Wrap][]): ```C // NOTE: partial example, not all referenced code is included