-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
doc: fix fs.promises sample codes. #20838
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
Conversation
benjamingr
left a comment
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
| ```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
vsemozhetbyt
left a comment
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 <benjamingr@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: #20838 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
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