Skip to content

Commit 36c090a

Browse files
authored
Fix broken code sample in README (#148)
1 parent 77eb8d1 commit 36c090a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ const packageName = await question('Package name', {
8484
- required
8585

8686
```js
87-
import { prompt, required } from "@topcli/prompts";
87+
import { question, required } from "@topcli/prompts";
8888

89-
const name = await prompt("What's your name ?", {
89+
const name = await question("What's your name ?", {
9090
validators: [required()]
9191
});
9292
```

0 commit comments

Comments
 (0)