Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Dec 5, 2023
1 parent ab9d4ea commit be7f3f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl From<&str> for CodeBlock {

impl From<CodeBlock> for String {
fn from(code: CodeBlock) -> Self {
// Do not return `code.content` here as we want the the format function to be applied first
// Do not return `code.content` here as we want the format function to be applied first
code.to_string()
}
}
2 changes: 1 addition & 1 deletion src/validators/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn enumerator_values_are_unique(enum_def: &Enum, diagnostics: &mut Diagnostics)
}
}

/// Validate the the underlying type of an enum is not optional.
/// Validate the underlying type of an enum is not optional.
fn underlying_type_cannot_be_optional(enum_def: &Enum, diagnostics: &mut Diagnostics) {
if let Some(ref typeref) = enum_def.underlying {
if typeref.is_optional {
Expand Down
2 changes: 1 addition & 1 deletion src/validators/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn validate_operation(operation: &Operation, diagnostics: &mut Diagnostics)

fn exception_specifications_can_only_be_used_in_slice1_mode(operation: &Operation, diagnostics: &mut Diagnostics) {
if operation.encoding != CompilationMode::Slice1 && !operation.exception_specification.is_empty() {
// Create a span that covers the the entire exception specification.
// Create a span that covers the entire exception specification.
let mut span = operation.exception_specification.first().unwrap().span().clone();
span.end = operation.exception_specification.last().unwrap().span().end;

Expand Down

0 comments on commit be7f3f2

Please sign in to comment.