comparison xml/en/docs/njs/node_modules.xml @ 2481:8ed243471444

Typos fixed.
author Vladimir Homutov <vl@nginx.com>
date Tue, 21 Jan 2020 19:29:57 +0300
parents 73d254c3376d
children bda080989b6c
comparison
equal deleted inserted replaced
2480:73d254c3376d 2481:8ed243471444
160 </example> 160 </example>
161 </para> 161 </para>
162 162
163 </section> 163 </section>
164 164
165 <section id="protobuf" name="Protobujfs"> 165 <section id="protobuf" name="Protobufjs">
166 166
167 <para> 167 <para>
168 The library provides a parser for the <literal>.proto</literal> interface 168 The library provides a parser for the <literal>.proto</literal> interface
169 definitions and a code generator for message parsing and generation. 169 definitions and a code generator for message parsing and generation.
170 </para> 170 </para>
244 10, 84, 101, 115, 116, 83, 244 10, 84, 101, 115, 116, 83,
245 116, 114, 105, 110, 103 245 116, 114, 105, 110, 103
246 ] 246 ]
247 </example> 247 </example>
248 248
249 You can see thet this got us a properly encoded <literal>gRPC</literal> frame. 249 You can see that this got us a properly encoded <literal>gRPC</literal> frame.
250 Now let's run it with njs: 250 Now let's run it with njs:
251 251
252 <example> 252 <example>
253 $ njs ./code.js 253 $ njs ./code.js
254 Thrown: 254 Thrown:
511 return buf; 511 return buf;
512 } 512 }
513 </example> 513 </example>
514 514
515 Note that in this example generated code is not wrapped into function and we 515 Note that in this example generated code is not wrapped into function and we
516 do not need to call it explicitely. 516 do not need to call it explicitly.
517 The result is in the "<literal>dist</literal>" directoty: 517 The result is in the "<literal>dist</literal>" directory:
518 518
519 <example> 519 <example>
520 $ cat dist/wp_out.js code.js > njs_dns_bundle.js 520 $ cat dist/wp_out.js code.js > njs_dns_bundle.js
521 </example> 521 </example>
522 522