aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-13 19:59:51 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-13 19:59:51 -0500
commitc60b21bf3c5c9341e4ced1d19d3aeed13dcfc778 (patch)
treea067ab0aef4dd7169c26fb4a975cad13f187e7fc
parent1a0bd10d3d09ad9f94d351f6014dc0bdf4a23b43 (diff)
Update docs
-rw-r--r--docs/strings.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/strings.md b/docs/strings.md
index 1893d70f..a981be2a 100644
--- a/docs/strings.md
+++ b/docs/strings.md
@@ -208,16 +208,16 @@ $$(Multi-line string with nested (parens) and
.. line continuation)
```
-As a special case, when `!` is used as an interpolation rule, no interpolations
-are allowed and `!` itself is treated as a literal character:
+As a special case, when you use the same character for interpolation and string
+delimiting, no interpolations are allowed:
```
-plain := $!"This string has {no interpolations}! Not even exclamation mark!"
+plain := $""This string has {no interpolations}!"
```
**Note:** Normal doubly quoted strings with no dollar sign (e.g. `"foo"`) are a
-shorthand for `${}"foo"`. Singly quoted strings with no dollar sign are
-shorthand for `$!'foo'`.
+shorthand for `${}"foo"`. Singly quoted strings with no dollar sign (e.g.
+`'foo'`) are shorthand for `$''foo'`.
## Operations