From 9fd8554595a37af62d7eeccd7ab9dbbd46cf68f4 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 2 Oct 2024 16:00:33 +0100 Subject: [PATCH] docs: use code blocks to avoid rendering issue on the website --- .../src/lint/nursery/no_template_curly_in_string.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/biome_js_analyze/src/lint/nursery/no_template_curly_in_string.rs b/crates/biome_js_analyze/src/lint/nursery/no_template_curly_in_string.rs index e9d43e297585..7a18b652118b 100644 --- a/crates/biome_js_analyze/src/lint/nursery/no_template_curly_in_string.rs +++ b/crates/biome_js_analyze/src/lint/nursery/no_template_curly_in_string.rs @@ -9,9 +9,9 @@ declare_lint_rule! { /// Disallow template literal placeholder syntax in regular strings. /// /// ECMAScript 6 allows programmers to create strings containing variable or expressions using template literals, - /// instead of string concatenation, by writing expressions like ${variable} between two backtick quotes (`). - /// It can be easy to use the wrong quotes when wanting to use template literals, by writing "${variable}", - /// and end up with the literal value "${variable}" instead of a string containing the value of the injected expressions. + /// instead of string concatenation, by writing expressions like `${variable}` between two backtick quotes (`). + /// It can be easy to use the wrong quotes when wanting to use template literals, by writing `"${variable}"`, + /// and end up with the literal value `"${variable}"` instead of a string containing the value of the injected expressions. /// /// ## Examples ///