From 922c13c6bb3f4963d41c6b8393537adbf32f0870 Mon Sep 17 00:00:00 2001 From: Derek Lewis Date: Sun, 24 May 2020 12:37:21 -0400 Subject: [PATCH] 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 --- doc/guides/investigating_native_memory_leak.md | 2 +- doc/guides/writing-and-running-benchmarks.md | 4 ++-- src/README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/investigating_native_memory_leak.md b/doc/guides/investigating_native_memory_leak.md index 8e58854007b789..f0a156286e3e5f 100644 --- a/doc/guides/investigating_native_memory_leak.md +++ b/doc/guides/investigating_native_memory_leak.md @@ -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; diff --git a/doc/guides/writing-and-running-benchmarks.md b/doc/guides/writing-and-running-benchmarks.md index eca55bf4edf2ea..5f630ccc1f805d 100644 --- a/doc/guides/writing-and-running-benchmarks.md +++ b/doc/guides/writing-and-running-benchmarks.md @@ -59,7 +59,7 @@ package managers or download it from . 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 "" mirror, it could look something like this: -```R +```r install.packages("ggplot2", repo="http://cran.us.r-project.org") ``` diff --git a/src/README.md b/src/README.md index 2604c4aefa3ae7..a3a6a71aa55544 100644 --- a/src/README.md +++ b/src/README.md @@ -910,7 +910,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& args) { Environment* env = Environment::GetCurrent(args); uv_passwd_t pwd;