# HG changeset patch # User Vladimir Homutov # Date 1579687807 -10800 # Node ID bda080989b6cd636c03b714c6f080ca460672ea0 # Parent 6ff92c65df945b1bf03a3eb848b4fa905a1c7b01 Fixed indentation and braces in njs example. diff --git a/xml/en/docs/njs/node_modules.xml b/xml/en/docs/njs/node_modules.xml --- a/xml/en/docs/njs/node_modules.xml +++ b/xml/en/docs/njs/node_modules.xml @@ -412,6 +412,7 @@ function parse_msg(pb, msg) var response = pb.helloworld.HelloReply.decode(bytes); console.log('Reply is:' + response.message); +} @@ -497,18 +498,18 @@ that stores our code: function set_buffer(dnsPacket) { -// create DNS packet bytes -var buf = dnsPacket.encode({ - type: 'query', - id: 1, - flags: dnsPacket.RECURSION_DESIRED, - questions: [{ - type: 'A', - name: 'google.com' - }] -}) + // create DNS packet bytes + var buf = dnsPacket.encode({ + type: 'query', + id: 1, + flags: dnsPacket.RECURSION_DESIRED, + questions: [{ + type: 'A', + name: 'google.com' + }] + }) -return buf; + return buf; }