Skip to content

Commit 789c840

Browse files
Update library/coretests/tests/ops.rs
Co-authored-by: Jubilee <[email protected]>
1 parent 5f2b046 commit 789c840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/coretests/tests/ops.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ fn test_range_to_contains() {
8989
assert!(!(1u32..=5).contains(&6));
9090
}
9191

92-
// This test covers `RangeBounds::contains` when the start is excluded.
92+
// This test covers `RangeBounds::contains` when the start is excluded,
93+
// which cannot be directly expressed by Rust's built-in range syntax.
9394
#[test]
9495
fn test_range_bounds_contains() {
9596
let r = (Bound::Excluded(1u32), Bound::Included(5u32));

0 commit comments

Comments
 (0)