Skip to content

Commit d27573c

Browse files
authored
learn(promises): update fs/promises example (#7763)
* Update discover-promises-in-nodejs.md Signed-off-by: Vishal Kumar Gupta <groupsvkg@gmail.com> * Update discover-promises-in-nodejs.md Signed-off-by: Vishal Kumar Gupta <groupsvkg@gmail.com> --------- Signed-off-by: Vishal Kumar Gupta <groupsvkg@gmail.com>
1 parent 634567e commit d27573c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/pages/en/learn/asynchronous-work/discover-promises-in-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function readFile() {
175175
readFile();
176176
```
177177

178-
In this example, `fs.promises.readFile()` returns a Promise, which we handle using `async/await` syntax to read the contents of a file asynchronously.
178+
In this example, `fs.readFile()` returns a Promise, which we handle using `async/await` syntax to read the contents of a file asynchronously.
179179

180180
## Advanced Promise Methods
181181

0 commit comments

Comments
 (0)