From d673119726e146a66746d23ff0340ef87c5ca6c0 Mon Sep 17 00:00:00 2001 From: Nuvindu Nirmana <63797478+Nuvindu@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:54:56 +0530 Subject: [PATCH] Update the description of the Avro BBE --- examples/avro-serdes/avro_serdes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/avro-serdes/avro_serdes.md b/examples/avro-serdes/avro_serdes.md index f0378ff8e6..3d8720201e 100644 --- a/examples/avro-serdes/avro_serdes.md +++ b/examples/avro-serdes/avro_serdes.md @@ -1,8 +1,8 @@ # Avro - Serialization/Deserialization -The `avro` module allows serializing and deserializing the subtypes of Ballerina `anydata`. Initially, an `avro:Schema` instance must be created by providing a `string` value representing an Avro schema. The `toAvro()` and `fromAvro()` methods of the `avro` module serialize and deserialize data respectively, using the generated Avro schema. +The `avro` module allows serializing and deserializing data with the `anydata` type. Initially, an `avro:Schema` instance must be created by providing a `string` value representing an Avro schema. The `toAvro()` and `fromAvro()` methods of the `avro` module serialize and deserialize data using the given Avro schema. -The `toAvro()` method serializes the given data according to the specified Avro schema. The `fromAvro()` method accepts a `byte[]` argument containing serialized data and binds the deserialized value to the inferred data type determined by the user. +The `toAvro()` method serializes the data according to the specified Avro schema. The `fromAvro()` method accepts a `byte[]` argument containing serialized data and binds the deserialized value to the inferred data type determined by the user. ::: code avro_serdes.bal :::