From 2bfd28e6f5ecc473122eed4eb38725c7fd34d2fd Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 28 Nov 2023 02:50:25 +0000 Subject: [PATCH] fix(prettier) remove unmatched brace when displaying doc (#1564) --- crates/oxc_prettier/src/doc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_prettier/src/doc.rs b/crates/oxc_prettier/src/doc.rs index 1ee4e603b..987f14849 100644 --- a/crates/oxc_prettier/src/doc.rs +++ b/crates/oxc_prettier/src/doc.rs @@ -193,7 +193,7 @@ pub trait DocBuilder<'a> { impl<'a> fmt::Display for Doc<'a> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{})", print_doc_to_debug(self)) + write!(f, "{}", print_doc_to_debug(self)) } }