File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -845,8 +845,8 @@ class MyObject : public node::ObjectWrap {
845
845
```
846
846
847
847
In ` myobject.cc ` , implement the various methods that are to be exposed.
848
- Below , the method ` plusOne() ` is exposed by adding it to the constructor's
849
- prototype:
848
+ In the following code , the method ` plusOne() ` is exposed by adding it to the
849
+ constructor's prototype:
850
850
851
851
``` cpp
852
852
// myobject.cc
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ In this example, the variable `PI` is private to `circle.js`.
42
42
The ` module.exports ` property can be assigned a new value (such as a function
43
43
or object).
44
44
45
- Below, ` bar.js ` makes use of the ` square ` module, which exports a Square class:
45
+ In the following code, ` bar.js ` makes use of the ` square ` module, which exports
46
+ a Square class:
46
47
47
48
``` js
48
49
const Square = require (' ./square.js' );
@@ -123,7 +124,7 @@ enough to support reasonable directory structures. Package manager programs
123
124
such as ` dpkg ` , ` rpm ` , and ` npm ` will hopefully find it possible to build
124
125
native packages from Node.js modules without modification.
125
126
126
- Below we give a suggested directory structure that could work:
127
+ In the following, we give a suggested directory structure that could work:
127
128
128
129
Let's say that we wanted to have the folder at
129
130
` /usr/lib/node/<some-package>/<some-version> ` hold the contents of a
You can’t perform that action at this time.
0 commit comments