We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51ba66d commit 7ba5500Copy full SHA for 7ba5500
doc/api/fs.md
@@ -7638,7 +7638,7 @@ try {
7638
fd = await open('/open/some/file.txt', 'r');
7639
// Do something with the file
7640
} finally {
7641
- await fd.close();
+ await fd?.close();
7642
}
7643
```
7644
@@ -7652,7 +7652,7 @@ try {
7652
fd = await open('file.txt', 'r');
7653
7654
7655
7656
7657
7658
@@ -7767,7 +7767,7 @@ try {
7767
fd = await open(Buffer.from('/open/some/file.txt'), 'r');
7768
7769
7770
7771
7772
7773
0 commit comments