Skip to content

Commit

Permalink
fix: fix example description
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 committed Jan 16, 2024
1 parent c86701c commit 2199ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/develop/sdks/dart/cheat-sheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This is an example of publishing a message to a topic called "topic", then catch
<SdkExampleCodeBlock language={'dart'} snippetId={'API_TopicPublish'} />

## Subscribe to a topic
This is an example of subscribing to a topic called "topic", then catching the return value to check if it was successful. If a subscription was received, a `for try await` loop is used to asynchronously receive and print the messages that are published to this topic.
This is an example of subscribing to a topic called "topic", then catching the return value to check if it was successful. If a subscription was received, an `await for` loop is used to asynchronously receive and print the messages that are published to this topic.

<SdkExampleCodeBlock language={'dart'} snippetId={'API_TopicSubscribe'} />

Expand Down

0 comments on commit 2199ecb

Please sign in to comment.