doc: fix misc. mislabeled code block info strings

Prior to this commit, a handful of misc. code blocks were in need
of fixup. Corrections are according to predetermined conventions.

Closes: https://github.com/nodejs/node/issues/32938

PR-URL: https://github.com/nodejs/node/pull/33548
Fixes: https://github.com/nodejs/node/issues/32938
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Derek Lewis authored and Shelley Vohr committed 2020-07-14 12:13:18 -07:00
1 parent 9e5d9d606a
commit ae135bb033
3 files changed
+4 -4

No files matched your search

@@ -366,7 +366,7 @@ line number:
This new output shows us exactly where the leak is occurring in the file `hello.cc`:
```C++
```cpp
6 void* malloc_holder = nullptr;
7 napi_value Method(napi_env env, napi_callback_info info) {
8 napi_status status;
+2 -2
View File
@@ -59,7 +59,7 @@ package managers or download it from <https://www.r-project.org/>.
The R packages `ggplot2` and `plyr` are also used and can be installed using
the R REPL.
```R
```console
$ R
install.packages("ggplot2")
install.packages("plyr")
@@ -71,7 +71,7 @@ selected first, specify a mirror by adding in the repo parameter.
If we used the "<http://cran.us.r-project.org>" mirror, it could look something
like this:
```R
```r
install.packages("ggplot2", repo="http://cran.us.r-project.org")
```
+1 -1
View File
@@ -860,7 +860,7 @@ Node.js provides a few macros that behave similar to `assert()`:
The `OnScopeLeave()` function can be used to run a piece of code when leaving
the current C++ scope.
```c++
```cpp
static void GetUserInfo(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
uv_passwd_t pwd;