diff xml/en/docs/njs/node_modules.xml @ 2592:fca42223b9fc

Fixed example in the "Using node modules with njs" article.
author Vladimir Homutov <vl@nginx.com>
date Fri, 11 Sep 2020 15:46:11 +0300
parents 4c8d0b37932d
children 5cd72684e5b8
line wrap: on
line diff
--- a/xml/en/docs/njs/node_modules.xml
+++ b/xml/en/docs/njs/node_modules.xml
@@ -9,7 +9,7 @@
 <article name="Using node modules with njs"
         link="/en/docs/njs/node_modules.html"
         lang="en"
-        rev="4">
+        rev="5">
 
 <section id="intro">
 
@@ -498,7 +498,7 @@ The result is in the "<literal>dist</lit
 </example>
 Let's call our code at the end of a file:
 <example>
-var b = setbuf(1);
+var b = set_buffer(global.dns);
 console.log(b);
 </example>
 And execute it using node: