# HG changeset patch # User Yaroslav Zhuravlev # Date 1615581251 0 # Node ID 8751cab1d562f3ebd397ca19d19ef13fd0836b79 # Parent 8f3e9ff2785f4cf5f738d9cd0010a797d709981d Corrected example description in js_import. diff --git a/xml/en/docs/http/ngx_http_js_module.xml b/xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml +++ b/xml/en/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="26">
@@ -235,7 +235,7 @@ js_import http.js; Here, the module name http is used as a namespace while accessing exports. -If the imported module contains foo(), +If the imported module exports foo(), http.foo is used to refer to it. diff --git a/xml/en/docs/stream/ngx_stream_js_module.xml b/xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml +++ b/xml/en/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="24">
@@ -178,7 +178,7 @@ js_import stream.js; Here, the module name stream is used as a namespace while accessing exports. -If the imported module contains foo(), +If the imported module exports foo(), stream.foo is used to refer to it. diff --git a/xml/ru/docs/http/ngx_http_js_module.xml b/xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml +++ b/xml/ru/docs/http/ngx_http_js_module.xml @@ -9,7 +9,7 @@ + rev="26">
@@ -236,7 +236,7 @@ js_import http.js; В примере при доступе к экспорту в качестве пространства имён используется имя модуля http. -Если импортируемый модуль содержит foo(), +Если импортируемый модуль экспортирует foo(), то для доступа используется http.foo. diff --git a/xml/ru/docs/stream/ngx_stream_js_module.xml b/xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml @@ -9,7 +9,7 @@ + rev="24">
@@ -179,7 +179,7 @@ js_import stream.js; В примере при доступе к экспорту в качестве пространства имён используется имя модуля stream. -Если импортируемый модуль содержит foo(), +Если импортируемый модуль экспортирует foo(), то для доступа используется stream.foo.