From 45fde802ee524a8978b4110a04cdc12b5f2b1e56 Mon Sep 17 00:00:00 2001 From: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:24:40 +0530 Subject: [PATCH 1/3] Fix open_records BBE comment --- examples/open-records/open_records.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/open-records/open_records.bal b/examples/open-records/open_records.bal index c62d8ed6e6..b791339b05 100644 --- a/examples/open-records/open_records.bal +++ b/examples/open-records/open_records.bal @@ -50,7 +50,7 @@ public function main() { Student s3 = s2; io:println(s3); - // You can assign a `Person` type value to a `map`. + // You can assign a `Student` type value to a `map`. map s4 = s3; io:println(s4); } From 1e0c53b18b68fa05ed8354c26e45890b9f5dc581 Mon Sep 17 00:00:00 2001 From: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:42:38 +0530 Subject: [PATCH 2/3] Improve open_records.bal comments --- examples/open-records/open_records.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/open-records/open_records.bal b/examples/open-records/open_records.bal index b791339b05..55fb5f2a17 100644 --- a/examples/open-records/open_records.bal +++ b/examples/open-records/open_records.bal @@ -46,11 +46,11 @@ public function main() { s2["credits"] = 120.5; io:println(s2); - // You can assign a `PartTimeStudent` type value to a `Student`. + // You can assign a `PartTimeStudent`-typed value to a `Student`-typed variable. Student s3 = s2; io:println(s3); - // You can assign a `Student` type value to a `map`. + // You can assign a `Student`-typed value to a `map`-typed variable. map s4 = s3; io:println(s4); } From 98a917c7e35151daae5a47ef54faac0a059d3dfb Mon Sep 17 00:00:00 2001 From: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:40:50 +0530 Subject: [PATCH 3/3] Refactor open_records.bal comments --- examples/open-records/open_records.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/open-records/open_records.bal b/examples/open-records/open_records.bal index 55fb5f2a17..e306610089 100644 --- a/examples/open-records/open_records.bal +++ b/examples/open-records/open_records.bal @@ -46,11 +46,11 @@ public function main() { s2["credits"] = 120.5; io:println(s2); - // You can assign a `PartTimeStudent`-typed value to a `Student`-typed variable. + // A variable of type `PartTimeStudent` can be used where a `Student` value is expected. Student s3 = s2; io:println(s3); - // You can assign a `Student`-typed value to a `map`-typed variable. + // A variable of type `Student` can be used where a `map` value is expected. map s4 = s3; io:println(s4); }