-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: fix fs.promises sample codes. #20838
Conversation
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.
Thank you for doing this! Changes LGTM
doc/api/fs.md
Outdated
@@ -3788,7 +3798,7 @@ If the third argument is a number, then it specifies `flags`, as shown in the | |||
following example. | |||
|
|||
```js | |||
const fs = require('fs'); | |||
const fsPromises = require('fs').promises; | |||
const { COPYFILE_EXCL } = fs.constants; |
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.
fs is undefined
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.
I'll fix it.
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.
Fixed. 726be35
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.
LGTM with @Ehstrali's comment addressed.
Thank you!
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
Landed in 7295d3b |
PR-URL: #20838 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
PR-URL: #20838 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Summary
Recreated the same PR from #20805
Fix fs.promises sample codes in doc/api/fs.md .
Please review this.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes