Skip to content

Commit e6cbf54

Browse files
authored
Merge pull request #40454 from amartini51/doc_fixes_main
Cherry pick documentation fixes to 'main'
2 parents 034b6d6 + 31f3dde commit e6cbf54

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

stdlib/public/core/Collection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,8 +1478,8 @@ extension Collection {
14781478
/// }
14791479
/// // Prints "[10, 20, 30, 40]"
14801480
///
1481-
/// - Parameter end: The index of the last element to include in the
1482-
/// resulting subsequence. `end` must be a valid index of the collection
1481+
/// - Parameter position: The index of the last element to include in the
1482+
/// resulting subsequence. `position` must be a valid index of the collection
14831483
/// that is not equal to the `endIndex` property.
14841484
/// - Returns: A subsequence up to, and including, the `end` position.
14851485
///

stdlib/public/core/Policy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public typealias Float64 = Double
8282
//===----------------------------------------------------------------------===//
8383
/// The default type for an otherwise-unconstrained integer literal.
8484
public typealias IntegerLiteralType = Int
85-
/// The default type for an otherwise-unconstrained floating point literal.
85+
/// The default type for an otherwise-unconstrained floating-point literal.
8686
public typealias FloatLiteralType = Double
8787

8888
/// The default type for an otherwise-unconstrained Boolean literal.

stdlib/public/core/SequenceAlgorithms.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ extension Sequence {
529529
/// let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 })
530530
/// // allHaveAtLeastFive == true
531531
///
532+
/// If the sequence is empty, this method returns `true`.
533+
///
532534
/// - Parameter predicate: A closure that takes an element of the sequence
533535
/// as its argument and returns a Boolean value that indicates whether
534536
/// the passed element satisfies a condition.

0 commit comments

Comments
 (0)