diff --git a/doc/api/addons.markdown b/doc/api/addons.markdown index 986c151097..93ece69d73 100644 --- a/doc/api/addons.markdown +++ b/doc/api/addons.markdown @@ -364,7 +364,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'); diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 49e86023a3..eac697d184 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -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');