diff --git a/examples/raw-templates/raw_templates.bal b/examples/raw-templates/raw_templates.bal index 3a18087003..5283aa85af 100644 --- a/examples/raw-templates/raw_templates.bal +++ b/examples/raw-templates/raw_templates.bal @@ -15,12 +15,12 @@ public function main() { int col2 = 10; // No static type validation for interpolation - object:RawTemplate rawTemplate = `${col1}, ${col2}, ${col3()}`; + object:RawTemplate rawTemplate = `${col1}, fixed_string1, ${col2}, ${col3()}, fixed_string3`; io:println(rawTemplate.strings); io:println(rawTemplate.insertions); // validate interpolations at compile time - MyCSVRawTemplate myCSVRawTemplate = `${col1}, ${col2}, ${col3()}`; + MyCSVRawTemplate myCSVRawTemplate = `fixed_string4, ${col1}, ${col2}, fixed_string_5, ${col3()}`; io:println(myCSVRawTemplate.strings); io:println(myCSVRawTemplate.insertions); } diff --git a/examples/raw-templates/raw_templates.out b/examples/raw-templates/raw_templates.out index e9475adff1..6e88292894 100644 --- a/examples/raw-templates/raw_templates.out +++ b/examples/raw-templates/raw_templates.out @@ -1,5 +1,5 @@ $ bal run -["",", ",", ",""] +["",", fixed_string1, ",", ",", fixed_string3"] [5,10,false] -["",", ",", ",""] +["fixed_string4, ",", ",", fixed_string_5, ",""] [5,10,false]