You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2018/11/04 07:40:10 UTC
[pulsar] branch master updated: Fix typo in consumer code (#2920)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 7351b24 Fix typo in consumer code (#2920)
7351b24 is described below
commit 7351b24c90d774cd5fac79cdfce91cf6407906a6
Author: Alice <Wh...@users.noreply.github.com>
AuthorDate: Sun Nov 4 07:40:05 2018 +0000
Fix typo in consumer code (#2920)
### Motivation
Fixing a small typo in the example consumer code which stops it from working
### Modifications
Small fix to resolve an incorrectly named variable in the example consumer client code
### Result
The example works
---
site2/docs/client-libraries-go.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site2/docs/client-libraries-go.md b/site2/docs/client-libraries-go.md
index 25d1958..c35e139 100644
--- a/site2/docs/client-libraries-go.md
+++ b/site2/docs/client-libraries-go.md
@@ -235,7 +235,7 @@ if err != nil {
defer consumer.Close()
-for cm := range channel {
+for cm := range msgChannel {
msg := cm.Message
fmt.Printf("Message ID: %s", msg.ID())