You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1_hello_world/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This file tells GYP the following things:
43
43
44
44
### Step 4
45
45
46
-
Now write some code!
46
+
Now write some code! Create a file called
47
47
First we create a file `hello.cc` and the following contents:
48
48
49
49
```c++
@@ -66,7 +66,7 @@ NODE_MODULE(hello, Init)
66
66
This code contains three main components, starting from the bottom:
67
67
68
68
```c++
69
-
NODE_MODULE(hello, init)
69
+
NODE_MODULE(hello, Init)
70
70
```
71
71
72
72
This code defines the entry-point for the Node addon, it tells Node where to go once the library has been loaded into active memory. The first argument **must match the "target" in our *binding.gyp***. The second argument points to the function to invoke.
0 commit comments