doc: change e.g to for example#18397
Conversation
CPP_STYLE_GUIDE.md
Outdated
| ## Ownership and Smart Pointers | ||
|
|
||
| "Smart" pointers are classes that act like pointers, e.g. | ||
| "Smart" pointers are classes that act like pointers, for example: |
There was a problem hiding this comment.
The : is fine for the parenthetical stuff but it's a problem in ordinary prose like this. I don't think we want to do a global find/replace on this. We want to evaluate each item independently. For example, this instance should probably be changed to such as rather than for example:.
Nit: Get rid of the scare quotes in this sentence and instead italicize the term being defined:
"Smart" pointers -> _Smart pointers_
doc/api/debugger.md
Outdated
| V8 Inspector can be enabled by passing the `--inspect` flag when starting a | ||
| Node.js application. It is also possible to supply a custom port with that flag, | ||
| e.g. `--inspect=9222` will accept DevTools connections on port 9222. | ||
| Node.js application. It is also possible to supply a custom port with that flag,for example: `--inspect=9222` will accept DevTools connections on port 9222. |
There was a problem hiding this comment.
Please get rid of the comma and put the the whole example in parentheses.
Trott
left a comment
There was a problem hiding this comment.
Left some change suggestions I'd like to see addressed before this lands. So I'm going to make it explicit with Request changes. Thanks!
|
I think the |
|
Sorry, there's no confusion in American English, it's |
BridgeAR
left a comment
There was a problem hiding this comment.
The line length is often above 80 characters.
|
@BridgeAR Thanks for pointing out but I am unable to figure out which line is that. Please help. |
|
@sreepurnajasti I am not sure what IDE you use but while for example using Visual Studio Code you can install a extension that you can use for to either highlighting it or to change it right away. This should also be possible with different IDEs. Other than that you can also just have a look at the changed lines here on github and every time the line seems longer than the other ones surrounding that line, it is probably above 80 characters. |
|
@BridgeAR Got it. I will make changes as soon as I get a decision on this pr. Thanks!! |
|
Ping @Trott |
I'm still -1. This should not be done with a find/replace. Each instance needs to be examined and handled thoughtfully. The |
Each case should be examined and a determination made as to whether there should be a comma or not, and whether or not |
| *Note*: On Windows, running Node.js in windows terminal emulators like `mintty` | ||
| requires the usage of [winpty](https://github.com/rprichard/winpty) for | ||
| Node's tty channels to work correctly (e.g. `winpty node.exe script.js`). | ||
| Node's tty channels to work correctly (for example: `winpty node.exe script.js`). |
There was a problem hiding this comment.
Nit: while in here, maybe Node's -> Node.js's or even just remove Node's altogether.
| ``` | ||
|
|
||
| ### Android/Android-based devices (e.g. Firefox OS) | ||
| ### Android/Android-based devices (for example: Firefox OS) |
There was a problem hiding this comment.
This would probably be better/clearer as (Firefox OS, etc.) rather than (for example: Firefox OS).
| * changing the side effects of using a particular API | ||
|
|
||
| Purely additive changes (e.g. adding new events to `EventEmitter` | ||
| Purely additive changes (for example: adding new events to `EventEmitter` |
There was a problem hiding this comment.
This is a place where such as is likely called for rather than for example.
|
|
||
| Note that errors thrown, along with behaviors and APIs implemented by | ||
| dependencies of Node.js (e.g. those originating from V8) are generally not | ||
| dependencies of Node.js (for example: those originating from V8) are generally not |
| * Breaking changes should *never* land in Current or LTS except when: | ||
| * Resolving critical security issues. | ||
| * Fixing a critical bug (e.g. fixing a memory leak) requires a breaking | ||
| * Fixing a critical bug (for example: fixing a memory leak) requires a breaking |
| hint: not have locally. This is usually caused by another repository pushing | ||
| hint: to the same ref. You may want to first integrate the remote changes | ||
| hint: (e.g. 'git pull ...') before pushing again. | ||
| hint: (for example: 'git pull ...') before pushing again. |
There was a problem hiding this comment.
This is output from a command. It should not be changed.
|
I started to go through and leave comments but stopped well before reviewing all the changes. Hopefully you get the idea. This may be more manageable as separate pull requests for each file or something like that. |
|
I agree with @Trott. This is not a mechanical change and the review cannot be handled with this many files affected. My suggestion would be to make small PRs that improve the language. The I'd suggest making one PR, once that is landed, use the feedback and learnings for the next PR. Otherwise reviewers get overwhelmed with a large number of PRs. Thanks! |
|
Due to the mentioned concerns I am going to close this. @sreepurnajasti thanks a lot for your contribution nevertheless and please go ahead as suggested and open a smaller PR. In that case it can probably also land much faster in general. |
Refs: #18369
Checklist
Affected core subsystem(s)
doc