From 35608c8eb1724a3a99fbd4b08cc34109df0a5ce1 Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 21 Feb 2024 18:06:37 +0800 Subject: [PATCH] chore: fix all docs --- crates/oxc_parser/src/lexer/search.rs | 2 +- crates/oxc_prettier/src/options.rs | 6 +++--- crates/oxc_transformer/src/react_jsx/options.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/oxc_parser/src/lexer/search.rs b/crates/oxc_parser/src/lexer/search.rs index 8d03b0919..77f43401f 100644 --- a/crates/oxc_parser/src/lexer/search.rs +++ b/crates/oxc_parser/src/lexer/search.rs @@ -325,7 +325,7 @@ pub(crate) use safe_byte_match_table; /// /// Can also add a block to decide whether to continue searching for some matches: /// -/// ``` +/// ```text /// impl<'a> Lexer<'a> { /// fn eat_stuff(&mut self) -> bool { /// byte_search! { diff --git a/crates/oxc_prettier/src/options.rs b/crates/oxc_prettier/src/options.rs index 864f62941..f9e789b0e 100644 --- a/crates/oxc_prettier/src/options.rs +++ b/crates/oxc_prettier/src/options.rs @@ -3,9 +3,9 @@ use std::str::FromStr; /// Prettier Options /// /// References -/// * https://prettier.io/docs/en/options -/// * https://github.com/prettier/prettier/blob/main/src/main/core-options.evaluate.js -/// * https://github.com/prettier/prettier/blob/main/src/language-js/options.js +/// * +/// * +/// * #[derive(Debug, Clone, Copy)] pub struct PrettierOptions { /* Global Options */ diff --git a/crates/oxc_transformer/src/react_jsx/options.rs b/crates/oxc_transformer/src/react_jsx/options.rs index 2877ffe86..3f54ccd42 100644 --- a/crates/oxc_transformer/src/react_jsx/options.rs +++ b/crates/oxc_transformer/src/react_jsx/options.rs @@ -28,11 +28,11 @@ pub struct ReactJsxOptions { /// When spreading props, use Object.assign directly instead of Babel's extend helper. /// Use `Some` instead of `bool` because we want to know if user set this field explicitly, - /// which used for creating warning, https://github.com/oxc-project/oxc/blob/c3e2098c04d8916cb812bdd16d2026bb430ac25f/crates/oxc_transformer/src/react_jsx/mod.rs#L111-L114 + /// which used for creating warning, pub use_built_ins: Option, /// When spreading props, use inline object with spread elements directly instead of Babel's extend helper or Object.assign. /// Use `Some` instead of `bool` because we want to know if user set this field explicitly, - /// which used for creating warning, https://github.com/oxc-project/oxc/blob/c3e2098c04d8916cb812bdd16d2026bb430ac25f/crates/oxc_transformer/src/react_jsx/mod.rs#L111-L114 + /// which used for creating warning, pub use_spread: Option, }