From c60b21bf3c5c9341e4ced1d19d3aeed13dcfc778 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Feb 2024 19:59:51 -0500 Subject: Update docs --- docs/strings.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3