diff --git a/doc/api/fs.md b/doc/api/fs.md index d8456dbdb3a1f7..832389ce05c6dd 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -402,7 +402,7 @@ try { filehandle = await open('temp.txt', 'r+'); await filehandle.truncate(4); } finally { - filehandle?.close(); + await filehandle?.close(); } ```