Skip to content

Commit 5361d05

Browse files
CopilotBoshen
andcommitted
Fix additional grammatical mistakes in Rust documentation comments
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent 31db244 commit 5361d05

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

crates/oxc_allocator/src/vec2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ where
274274
///
275275
/// # Indexing
276276
///
277-
/// The `Vec` type allows to access values by index, because it implements the
277+
/// The `Vec` type allows you to access values by index, because it implements the
278278
/// [`Index`] trait. An example will be more explicit:
279279
///
280280
/// ```

crates/oxc_ecmascript/src/constant_evaluation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub trait ConstantEvaluation<'a>: MayHaveSideEffects<'a> {
3636
///
3737
/// - target_ty: How the result will be used.
3838
/// For example, if the result will be converted to a boolean,
39-
/// passing `Some(ValueType::Boolean)` will allow to utilize that information.
39+
/// passing `Some(ValueType::Boolean)` will allow us to utilize that information.
4040
fn evaluate_value_to(
4141
&self,
4242
ctx: &impl ConstantEvaluationCtx<'a>,

crates/oxc_parser/src/lexer/number.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const fn binary_byte_to_value(b: u8) -> u8 {
135135
b & 1
136136
}
137137

138-
/// NOTE: bit shifting here is is safe and much faster than f64::mul_add.
138+
/// NOTE: bit shifting here is safe and much faster than f64::mul_add.
139139
/// It's safe because we're sure this number is an integer - if it wasn't, it
140140
/// would be a [`Kind::Float`] instead. It's fast because shifting usually takes
141141
/// 1 clock cycle on the ALU, while multiplication+addition uses the FPU and is

crates/oxc_transformer/src/decorator/options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ pub struct DecoratorOptions {
66
/// Enables experimental support for decorators, which is a version of decorators that predates the TC39 standardization process.
77
///
88
/// Decorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification.
9-
/// This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39.
9+
/// This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it is decided by TC39.
1010
///
1111
/// <https://www.typescriptlang.org/tsconfig#experimentalDecorators>
1212
#[serde(skip)]
1313
pub legacy: bool,
1414

1515
/// Enables emitting decorator metadata.
1616
///
17-
/// This option the same as [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata)
17+
/// This option is the same as [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata)
1818
/// in TypeScript, and it only works when `legacy` is true.
1919
pub emit_decorator_metadata: bool,
2020
}

crates/oxc_transformer/src/typescript/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub struct TypeScriptOptions {
9191
/// Modifies extensions in import and export declarations.
9292
///
9393
/// This option, when used together with TypeScript's [`allowImportingTsExtension`](https://www.typescriptlang.org/tsconfig#allowImportingTsExtensions) option,
94-
/// allows to write complete relative specifiers in import declarations while using the same extension used by the source files.
94+
/// allows you to write complete relative specifiers in import declarations while using the same extension used by the source files.
9595
///
9696
/// When set to `true`, same as [`RewriteExtensionsMode::Rewrite`]. Defaults to `false` (do nothing).
9797
#[serde(deserialize_with = "deserialize_rewrite_import_extensions")]

0 commit comments

Comments
 (0)