-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: modernize and fix code examples in path.md #12296
Conversation
@@ -332,7 +332,7 @@ path.normalize('/foo/bar//baz/asdf/quux/..') | |||
On Windows: | |||
|
|||
```js | |||
path.normalize('C:\\temp\\\\foo\\bar\\..\\'); | |||
path.normalize('C:\\temp\\\\foo\\bar\\..\\') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you delete the semicolon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are sections where all semicolons are present, there are ones where all are omitted. In the most cases when examples are intended to run in REPL all the semicolon are omitted. In this section one is present and one is omitted. I've just tried to make it consistent and similar to others.
Landed in a912425 |
Unify spaces, quotes, and semicolons. Update output examples. PR-URL: #12296 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Unify spaces, quotes, and semicolons. Update output examples. PR-URL: #12296 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Unify spaces, quotes, and semicolons. Update output examples. PR-URL: #12296 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Unify spaces, quotes, and semicolons. Update output examples. PR-URL: #12296 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The docs changes are not all accurate for v6.x. Please feel free to manually backport. Please also feel free to replace do-not-land if it is being backported |
Checklist
Affected core subsystem(s)
doc, path