doc: fix code type of markdowns
authorJackson Tian <shyvo1987@gmail.com>
Mon, 25 Jan 2016 14:28:43 +0000 (22:28 +0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
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>
doc/api/addons.markdown
doc/api/crypto.markdown

index f0ec1c3..c9aea39 100644 (file)
@@ -366,7 +366,7 @@ adding the function as a property of `exports`.
 
 To test it, run the following JavaScript:
 
-```cpp
+```js
 // test.js
 const addon = require('./build/Release/addon');
 
index f37fcfa..0b97e0b 100644 (file)
@@ -235,7 +235,7 @@ decipher.end();
 
 Example: Using `Decipher` and piped streams:
 
-```
+```js
 const crypto = require('crypto');
 const fs = require('fs');
 const decipher = crypto.createDecipher('aes192', 'a password');