You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/09/21 03:14:17 UTC

[pulsar] branch master updated: [fix][doc] fix schema get value doc problem (#17740)

This is an automated email from the ASF dual-hosted git repository.

technoboy 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 dba9c08669c [fix][doc] fix schema get value doc problem (#17740)
dba9c08669c is described below

commit dba9c08669cf0a05ec0c339988d358346efddf85
Author: congbo <39...@users.noreply.github.com>
AuthorDate: Wed Sep 21 11:14:07 2022 +0800

    [fix][doc] fix schema get value doc problem (#17740)
---
 site2/docs/schema-understand.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site2/docs/schema-understand.md b/site2/docs/schema-understand.md
index 6eb2a396148..ed65c619ecd 100644
--- a/site2/docs/schema-understand.md
+++ b/site2/docs/schema-understand.md
@@ -278,7 +278,7 @@ Pulsar gets the schema definition from the predefined `struct` using an Avro lib
 
    ```java
    Consumer<User> consumer = client.newConsumer(Schema.AVRO(User.class)).subscribe();
-   User user = consumer.receive();
+   User user = consumer.receive().getValue();
    ```
 
 </TabItem>