Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Lewis <DerekNonGeneric@inf.is>2020-05-20 16:35:59 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-05-23 18:21:20 +0300
commit9dd7557c7d934931378593aca48bb0ac08b50920 (patch)
treeb45992fa5d06f491e818e5f802cc1796e16beb34 /doc/api/embedding.md
parent78eb420fed154b7729283a3d63c99fa9989ffbea (diff)
doc: normalize C++ code block info strings
Prior to this commit, C++ fenced code blocks in Markdown files had inconsistent info strings. This has been corrected to standarize on the one with the highest frequency in the doc/api/ dir. Stats: > 'cpp' => 19, > 'C++' => 6, > 'c++' => 3, PR-URL: https://github.com/nodejs/node/pull/33483 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/embedding.md')
-rw-r--r--doc/api/embedding.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/embedding.md b/doc/api/embedding.md
index 9eaa144e3da..a8fe2de72c9 100644
--- a/doc/api/embedding.md
+++ b/doc/api/embedding.md
@@ -33,7 +33,7 @@ Node.js requires some per-process state management in order to run:
The following example shows how these can be set up. Some class names are from
the `node` and `v8` C++ namespaces, respectively.
-```c++
+```cpp
int main(int argc, char** argv) {
std::vector<std::string> args(argv, argv + argc);
std::vector<std::string> exec_args;
@@ -93,7 +93,7 @@ The `node::NewIsolate()` helper function creates a `v8::Isolate`,
sets it up with some Node.js-specific hooks (e.g. the Node.js error handler),
and registers it with the platform automatically.
-```c++
+```cpp
int RunNodeInstance(MultiIsolatePlatform* platform,
const std::vector<std::string>& args,
const std::vector<std::string>& exec_args) {