Skip to content

Commit

Permalink
docs(meow): use Array#at in example
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Mar 30, 2023
1 parent 50c96a5 commit bcd624d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ const cli = meow(`
// ...
//}
foo(cli.input[0], cli.flags);
foo(cli.input.at(0), cli.flags);
```
*/
export default function meow<Flags extends AnyFlags>(helpMessage: string, options?: Options<Flags>): Result<Flags>;
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const cli = meow(`
}
*/

foo(cli.input[0], cli.flags);
foo(cli.input.at(0), cli.flags);
```

## API
Expand Down

0 comments on commit bcd624d

Please sign in to comment.