Skip to content

Commit

Permalink
Update switch.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat authored May 7, 2023
1 parent 01690d1 commit fa95d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa_ast/src/statement/switch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct Case {
}

impl Case {
/// Creates a `Case` AST node.
/// Creates a regular `Case` AST node.
#[inline]
#[must_use]
pub const fn new(condition: Expression, body: StatementList) -> Self {
Expand All @@ -37,7 +37,7 @@ impl Case {
}
}

/// Creates a `Case` AST node.
/// Creates a default `Case` AST node.
#[inline]
#[must_use]
pub const fn default(body: StatementList) -> Self {
Expand Down

0 comments on commit fa95d51

Please sign in to comment.