Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Co-Authored-By: Maryam Ziyad <[email protected]>
  • Loading branch information
heshanpadmasiri and MaryamZi committed Nov 13, 2024
1 parent 0c7b30a commit e66f649
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/string-templates/string_templates.bal
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ public function main() {
string s1 = string `line one \n rest of line 1 ${"\n"} second line`;
io:println(s1);

// Use interpolations to add ` and $ characters.
// Use interpolations to add the ` and $ characters.
string s2 = string `Backtick: ${"`"} Dollar: ${"$"}`;
io:println(s2);

// Template expressions can be nested.
string s3 = string `outer ${string `inner ${5} inner rest`} rest`;
io:println(s3);

// You can use an empty string interpolation to break a template expression
// across multiple lines.
string s4 = string `prefix ${
Expand Down

0 comments on commit e66f649

Please sign in to comment.