diff --git a/README.md b/README.md index a15cf92..6cc05b5 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Displays the `query` to the user, and then returns the user's response after it ### setEncoding ```js -readlineSync.setPrompt(encoding) +readlineSync.setEncoding(encoding) ``` Set the encoding method of input (user's response) and output (`prompt`). Defaults to 'utf8'.