diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-13 19:59:51 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-13 19:59:51 -0500 |
| commit | c60b21bf3c5c9341e4ced1d19d3aeed13dcfc778 (patch) | |
| tree | a067ab0aef4dd7169c26fb4a975cad13f187e7fc /docs | |
| parent | 1a0bd10d3d09ad9f94d351f6014dc0bdf4a23b43 (diff) | |
Update docs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/strings.md | 10 |
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 |
