mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] all sorts of require renamed back to precondition
This commit is contained in:
@@ -1601,7 +1601,7 @@ final class EvilCollection : Collection {
|
||||
|
||||
subscript(i: Int) -> TestValueTy {
|
||||
if boundsChecked {
|
||||
require(i >= 0 && i < _count, evilBoundsError)
|
||||
precondition(i >= 0 && i < _count, evilBoundsError)
|
||||
}
|
||||
return TestValueTy(i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user