mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
78eb420fed
commit
9dd7557c7d
8 files changed
+41
-41
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user