From b8e1c9b02e72c5092c6b6cfa399025c4b96a4cd7 Mon Sep 17 00:00:00 2001 From: MaryamZi Date: Fri, 11 Oct 2024 11:29:48 +0530 Subject: [PATCH] Update comments --- examples/unions/unions.bal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/unions/unions.bal b/examples/unions/unions.bal index cd22af6c5a..6170bbbfc6 100644 --- a/examples/unions/unions.bal +++ b/examples/unions/unions.bal @@ -25,9 +25,9 @@ public function main() { physics: (), chemistry: "76" }; - // Parsing a map with grades values that are either the string + // Parsing a map with grade values that are either the string // representation of an integer or nil results in a map of - // the just the non-nil grades as integers. + // just the non-nil grades as integers. map|error parseGrades1 = parseGrades(grades1); io:println(parseGrades1); @@ -74,7 +74,7 @@ function parseGrades(map grades) returns map|error { // value is expected. int|error parsedGrade = int:fromString(grade); - // If the `parsedGrade` value is an error value terminate the + // If the `parsedGrade` value is an error value, terminate the // execution of this function and return the error value. if parsedGrade is error { return parsedGrade;