diff --git a/site2/docs/schema-understand.md b/site2/docs/schema-understand.md index 6eb2a3961487b..ed65c619ecd1e 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 consumer = client.newConsumer(Schema.AVRO(User.class)).subscribe(); - User user = consumer.receive(); + User user = consumer.receive().getValue(); ```