Mercurial > hg > nginx-site
changeset 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 | f27cedd43e0f |
children | eeed494bba51 |
files | xml/en/docs/njs/node_modules.xml xml/ru/docs/njs/node_modules.xml |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/node_modules.xml Wed Sep 02 16:10:37 2020 +0300 +++ b/xml/en/docs/njs/node_modules.xml Fri Sep 11 15:46:11 2020 +0300 @@ -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 @@ </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:
--- a/xml/ru/docs/njs/node_modules.xml Wed Sep 02 16:10:37 2020 +0300 +++ b/xml/ru/docs/njs/node_modules.xml Fri Sep 11 15:46:11 2020 +0300 @@ -9,7 +9,7 @@ <article name="Использование модулей Node.js в njs" link="/ru/docs/njs/node_modules.html" lang="en" - rev="4"> + rev="5"> <section id="intro"> @@ -501,7 +501,7 @@ </example> Далее осуществляется вызов кода в конце файла: <example> -var b = setbuf(1); +var b = set_buffer(global.dns); console.log(b); </example> И затем выполнение кода при помощи node: