Browse Source

doc: fix code type of markdowns

1. correct code type in addons.markdown
2. add missed code type in crypto.markdown

PR-URL: https://github.com/nodejs/node/pull/4858
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
process-exit-stdio-flushing
Jackson Tian 9 years ago
committed by Roman Reiss
parent
commit
accd69ef63
  1. 2
      doc/api/addons.markdown
  2. 2
      doc/api/crypto.markdown

2
doc/api/addons.markdown

@ -364,7 +364,7 @@ adding the function as a property of `exports`.
To test it, run the following JavaScript: To test it, run the following JavaScript:
```cpp ```js
// test.js // test.js
const addon = require('./build/Release/addon'); const addon = require('./build/Release/addon');

2
doc/api/crypto.markdown

@ -235,7 +235,7 @@ decipher.end();
Example: Using `Decipher` and piped streams: Example: Using `Decipher` and piped streams:
``` ```js
const crypto = require('crypto'); const crypto = require('crypto');
const fs = require('fs'); const fs = require('fs');
const decipher = crypto.createDecipher('aes192', 'a password'); const decipher = crypto.createDecipher('aes192', 'a password');

Loading…
Cancel
Save