From ed40581e911c993d1fac22dbd4447d187a8a0244 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 8 Aug 2025 10:13:47 +0000 Subject: [PATCH] docs(transformer): improve doc comment formatting (#12899) Nit. Alter formatting of doc comment. Produces same HTML docs, but is easier to read in the Rust code, and doesn't confuse clippy. --- crates/oxc_transformer/src/plugins/styled_components.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/oxc_transformer/src/plugins/styled_components.rs b/crates/oxc_transformer/src/plugins/styled_components.rs index ef5bf3ce24d43..bca1ec072b948 100644 --- a/crates/oxc_transformer/src/plugins/styled_components.rs +++ b/crates/oxc_transformer/src/plugins/styled_components.rs @@ -114,11 +114,10 @@ pub struct StyledComponentsOptions { /// Transpiles styled-components tagged template literals to a smaller representation /// than what Babel normally creates, helping to reduce bundle size. /// - /// Converts `styled.div\`width: 100%;\`` to `styled.div(['width: 100%;'])`, which is + /// Converts `` styled.div`width: 100%;` `` to `styled.div(['width: 100%;'])`, which is /// more compact than the standard Babel template literal transformation. /// /// Default: `true` - #[expect(clippy::doc_link_with_quotes)] #[serde(default = "default_as_true")] pub transpile_template_literals: bool,