Skip to content

Commit

Permalink
Update SendGrid.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino authored Dec 15, 2024
1 parent 054a6ff commit 1a24f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SendGrid/SendGrid.docc/SendGrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Usage in a route closure would be as followed:
import SendGrid

let email = SendGridEmail()
try await req.sendgrid.client.send(email)
try await req.sendgrid.client.send(email: email)
```

### Error handling
Expand All @@ -31,7 +31,7 @@ Simply ensure you catch errors thrown like any other throwing function.

```swift
do {
try await req.sendgrid.client.send(email)
try await req.sendgrid.client.send(email: email)
} catch let error as SendGridError {
req.logger.error("\(error.errors)")
}
Expand Down

0 comments on commit 1a24f07

Please sign in to comment.