@@ -855,21 +855,22 @@ public struct PartialRangeFrom<Bound: Comparable>: RangeExpression {
855
855
}
856
856
}
857
857
858
- /// A partial interval extending upward from a lower bound.
858
+ /// A partial interval extending upward from a lower bound that forms a
859
+ /// sequence of increasing values.
859
860
///
860
- /// You create `PartialRangeFrom ` instances by using the postfix range operator
861
- /// (postfix `...`).
861
+ /// You create `CountablePartialRangeFrom ` instances by using the postfix range
862
+ /// operator (postfix `...`).
862
863
///
863
864
/// let atLeastFive = 5.0...
864
865
///
865
- /// You can use a `PartialRangeFrom` instance to quickly check if a value is
866
+ /// You can use a countable partial range to quickly check if a value is
866
867
/// contained in a particular range of values. For example:
867
868
///
868
869
/// atLeastFive.contains(4.0) // false
869
870
/// atLeastFive.contains(5.0) // true
870
871
/// atLeastFive.contains(6.0) // true
871
872
///
872
- /// You can use a `PartialRangeFrom` instance of a collection's indices to
873
+ /// You can use a countable partial range of a collection's indices to
873
874
/// represent the range from the partial range's lower bound up to the end of
874
875
/// the collection.
875
876
///
@@ -885,9 +886,8 @@ public struct PartialRangeFrom<Bound: Comparable>: RangeExpression {
885
886
/// Using a Partial Range as a Sequence
886
887
/// ===================================
887
888
///
888
- /// You can iterate over a `PartialRangeFrom` instance using a `for`-`in` loop,
889
- /// or call any sequence method that doesn't require that the sequence is
890
- /// finite.
889
+ /// You can iterate over a countable partial range using a `for`-`in` loop, or
890
+ /// call any sequence method that doesn't require that the sequence is finite.
891
891
///
892
892
/// func isTheMagicNumber(_ x: Int) -> Bool {
893
893
/// return x == 3
@@ -906,8 +906,8 @@ public struct PartialRangeFrom<Bound: Comparable>: RangeExpression {
906
906
/// // "3 is the magic number!"
907
907
///
908
908
/// Because a `CountablePartialRangeFrom` sequence counts upward indefinitely,
909
- /// do not use one with methods such as `map(_:)`, `filter(_:)`, or
910
- /// `suffix (_:)` that read the entire sequence before returning . It is safe to
909
+ /// do not use one with methods that read the entire sequence before
910
+ /// returning, such as `map (_:)`, `filter(_:)`, or `suffix(_:)` . It is safe to
911
911
/// use operations that put an upper limit on the number of elements they
912
912
/// access, such as `prefix(_:)` or `dropFirst(_:)`, and operations that you
913
913
/// can guarantee will terminate, such as passing a closure you know will
0 commit comments