Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ngallagher committed Feb 4, 2019
1 parent 0cb0136 commit f71c7e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f71c7e7

Please sign in to comment.