Skip to content

Commit 4592b19

Browse files
kajetanswdimadeveatii
authored andcommitted
fixed usage of array type (labs42io#24)
1 parent 15b1b55 commit 4592b19

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
@@ -317,7 +317,7 @@ This is by far the most important rule in software engineering. When functions d
317317
**Bad:**
318318

319319
```ts
320-
function emailClients(clients: Client) {
320+
function emailClients(clients: Client[]) {
321321
clients.forEach((client) => {
322322
const clientRecord = database.lookup(client);
323323
if (clientRecord.isActive()) {
@@ -330,7 +330,7 @@ function emailClients(clients: Client) {
330330
**Good:**
331331

332332
```ts
333-
function emailClients(clients: Client) {
333+
function emailClients(clients: Client[]) {
334334
clients.filter(isActiveClient).forEach(email);
335335
}
336336

0 commit comments

Comments
 (0)