Skip to content

Commit

Permalink
Refactor block statement's statements() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su committed Oct 25, 2023
1 parent 795b08b commit 26b4473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/statement/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl BlockStatement {
self.statements.len()
}

pub fn statements(&self) -> &Vec<Statement> {
pub fn statements(&self) -> &[Statement] {
&self.statements
}

Expand Down

0 comments on commit 26b4473

Please sign in to comment.