Skip to content

Commit

Permalink
doc,readline: add missing node protocol in example
Browse files Browse the repository at this point in the history
PR-URL: nodejs#41560
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Mesteery authored and thedull committed Jan 18, 2022
1 parent 5e20284 commit 1f4cc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/readline.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following simple example illustrates the basic use of the `readline` module.

```mjs
import * as readline from 'node:readline/promises';
import { stdin as input, stdout as output } from 'process';
import { stdin as input, stdout as output } from 'node:process';

const rl = readline.createInterface({ input, output });

Expand Down

0 comments on commit 1f4cc1e

Please sign in to comment.