From f71c7e725278474e4701ef712e24085241a2455f Mon Sep 17 00:00:00 2001 From: Authrus Date: Mon, 4 Feb 2019 21:31:25 +0000 Subject: [PATCH] Update documentation --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d86cc0fc..188c4f99 100644 --- a/README.md +++ b/README.md @@ -311,18 +311,21 @@ let coercion: Double = "1.234e2"; // coercion of string to double A fundamental part of creating programs is working with textual data. As in other languages, we use the type string to refer to these textual types. Strings are represented by characters -between either a single quote or a double quote. When characters are between double quotes they -are interpolated, meaning they have expressions evaluated within them. These expressions start -with the dollar character. All strings can span multiple lines. +between a single quote, a double quote, or a backtick. When characters are between double quotes +or backticks they are interpolated, meaning they have expressions evaluated within them. These +expressions start with the dollar character. All strings can span multiple lines. ```rust let string = 'Hello World!'; // literal string let template = "The sum of 1 and 2 is ${1 + 2}"; // interpolated string let concat = "The sum of 1 and 2 is " + (1 + 2); // concatenation + let multiline = "Details a) This is a new line b) This is another new line"; +let backtick = `A backtic can contain "quotes" and ${expressions} + and can span multiple lines`; ``` ##### Arrays