Skip to content

Commit

Permalink
Fix comment in the test file main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed May 3, 2023
1 parent 341e548 commit 623420d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/expected/array/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ fn foo(x: [i32; 5]) -> [i32; 2] {
}

/// Generate an out-of-bound index with the given length.
/// We use a function so the constant propagation
///
/// We use a function to prevent constant progragation, so the out-of-bounds
/// error is not detected at compilation time.
fn oob_index(len: usize) -> usize {
len
}
Expand Down

0 comments on commit 623420d

Please sign in to comment.