diff --git a/sdk/eventhub/azure-eventhub/README.md b/sdk/eventhub/azure-eventhub/README.md index 42b0632240eb..965c857dd929 100644 --- a/sdk/eventhub/azure-eventhub/README.md +++ b/sdk/eventhub/azure-eventhub/README.md @@ -197,7 +197,7 @@ with client: ### Publish events to an Event Hub asynchronously -Use the `create_batch` method on `EventHubProcuer` to create an `EventDataBatch` object which can then be sent using the `send_batch` method. +Use the `create_batch` method on `EventHubProducer` to create an `EventDataBatch` object which can then be sent using the `send_batch` method. Events may be added to the `EventDataBatch` using the `add` method until the maximum batch size limit in bytes has been reached. ```python import asyncio diff --git a/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py b/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py index 49ed22743971..89df3147458f 100644 --- a/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py +++ b/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------------------------- """ -Example to demonstrate utilizing SAS (Shared Access Signature) tokens to authenticate with ServiceBus +Example to demonstrate utilizing SAS (Shared Access Signature) tokens to authenticate with EventHub """ # pylint: disable=C0111