Skip to content

Commit

Permalink
docs: fix example document
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-bandi committed May 11, 2024
1 parent f3e3cff commit ae91e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/docs/rules/array-type.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const y: readonly string[] = ['a', 'b'];

### `"generic"`

Always use `Array<T>`, `ReadonlyArray<T>`, or `Readonly<T[]>` for all array types.
`readonly T[]` will be modified to `ReadonlyArray<T>`.
Always use `Array<T>`, `ReadonlyArray<T>`, or `Readonly<Array<T>>` for all array types.
`readonly T[]` will be modified to `ReadonlyArray<T>` and `Readonly<T[]>` will be modified to `Readonly<Array<T>`.

<Tabs>
<TabItem value="❌ Incorrect">
Expand Down

0 comments on commit ae91e94

Please sign in to comment.