@@ -281,6 +281,9 @@ public protocol _Indexable : _IndexableBase {
281
281
/// - i: A valid index of the collection.
282
282
/// - n: The distance to offset `i`. `n` must not be negative unless the
283
283
/// collection conforms to the `BidirectionalCollection` protocol.
284
+ /// - limit: A valid index of the collection to use as a limit. If `n > 0`,
285
+ /// a limit that is less than `i` has no effect. Likewise, if `n < 0`, a
286
+ /// limit that is greater than `i` has no effect.
284
287
/// - Returns: `true` if `i` has been offset by exactly `n` steps without
285
288
/// going beyond `limit`; otherwise, `false`. When the return value is
286
289
/// `false`, the value of `i` is equal to `limit`.
@@ -1037,6 +1040,9 @@ extension _Indexable {
1037
1040
/// - i: A valid index of the collection.
1038
1041
/// - n: The distance to offset `i`. `n` must not be negative unless the
1039
1042
/// collection conforms to the `BidirectionalCollection` protocol.
1043
+ /// - limit: A valid index of the collection to use as a limit. If `n > 0`,
1044
+ /// a limit that is less than `i` has no effect. Likewise, if `n < 0`, a
1045
+ /// limit that is greater than `i` has no effect.
1040
1046
/// - Returns: `true` if `i` has been offset by exactly `n` steps without
1041
1047
/// going beyond `limit`; otherwise, `false`. When the return value is
1042
1048
/// `false`, the value of `i` is equal to `limit`.
0 commit comments