Skip to content

Commit

Permalink
doc: fix misc. mislabeled code block info strings
Browse files Browse the repository at this point in the history
Prior to this commit, a handful of misc. code blocks were in need
of fixup. Corrections are according to predetermined conventions.

Closes: #32938

PR-URL: #33548
Fixes: #32938
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Derek Lewis authored and codebytere committed Jul 10, 2020
1 parent 90ddf0a commit 4654e23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/guides/investigating_native_memory_leak.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions doc/guides/writing-and-running-benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
```

Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4654e23

Please sign in to comment.