chore: fix all docs

This commit is contained in:
Boshen 2024-02-21 18:06:37 +08:00
parent 4f22eaaf96
commit 35608c8eb1
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
3 changed files with 6 additions and 6 deletions

View file

@ -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! {

View file

@ -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
/// * <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 */

View file

@ -28,11 +28,11 @@ pub struct ReactJsxOptions {
/// When spreading props, use Object.assign directly instead of Babel's extend helper.
/// Use `Some<T>` 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, <https://github.com/oxc-project/oxc/blob/c3e2098c04d8916cb812bdd16d2026bb430ac25f/crates/oxc_transformer/src/react_jsx/mod.rs#L111-L114>
pub use_built_ins: Option<bool>,
/// When spreading props, use inline object with spread elements directly instead of Babel's extend helper or Object.assign.
/// Use `Some<T>` 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, <https://github.com/oxc-project/oxc/blob/c3e2098c04d8916cb812bdd16d2026bb430ac25f/crates/oxc_transformer/src/react_jsx/mod.rs#L111-L114>
pub use_spread: Option<bool>,
}