# HG changeset patch # User Vladimir Homutov # Date 1579687807 -10800 # Node ID bda080989b6cd636c03b714c6f080ca460672ea0 # Parent 6ff92c65df945b1bf03a3eb848b4fa905a1c7b01 Fixed indentation and braces in njs example. diff -r 6ff92c65df94 -r bda080989b6c xml/en/docs/njs/node_modules.xml --- a/xml/en/docs/njs/node_modules.xml Tue Jan 21 18:25:41 2020 +0000 +++ b/xml/en/docs/njs/node_modules.xml Wed Jan 22 13:10:07 2020 +0300 @@ -412,6 +412,7 @@ var response = pb.helloworld.HelloReply.decode(bytes); console.log('Reply is:' + response.message); +} @@ -497,18 +498,18 @@ 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; }