mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] all sorts of require renamed back to precondition
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
extension String.UTF16View.Index : RandomAccessIndex {
|
||||
/// Construct from an integer offset.
|
||||
public init(_ offset: Int) {
|
||||
_require(offset >= 0, "Negative UTF16 index offset not allowed")
|
||||
_precondition(offset >= 0, "Negative UTF16 index offset not allowed")
|
||||
self.init(_offset: offset)
|
||||
// self._offset = offset
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user