Skip to content

Commit

Permalink
docs: fix typo; add highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Oct 29, 2021
1 parent 0dd2489 commit 4096b20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/utilities/data_classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ for more details.

=== "app.py"

```python
```python hl_lines="4-5 9-10"
from typing import Dict

from aws_lambda_powertools import Logger
Expand All @@ -102,7 +102,7 @@ for more details.
logger = Logger()

@event_source(data_class=ActiveMQEvent)
def lambda_handle(event: ActiveMQEvent, context):
def lambda_handler(event: ActiveMQEvent, context):
for message in event.messages:
logger.debug(f"MessageID: {message.message_id}")
data: Dict = message.json_data
Expand Down Expand Up @@ -845,7 +845,7 @@ for more details.

=== "app.py"

```python
```python hl_lines="4-5 9-10"
from typing import Dict

from aws_lambda_powertools import Logger
Expand All @@ -855,7 +855,7 @@ for more details.
logger = Logger()

@event_source(data_class=RabbitMQEvent)
def lambda_handle(event: RabbitMQEvent, context):
def lambda_handler(event: RabbitMQEvent, context):
for queue_name, messages in event.rmq_messages_by_queue.items():
logger.debug(f"Messages for queue: {queue_name}")
for message in messages:
Expand Down

0 comments on commit 4096b20

Please sign in to comment.