From c8ae549e42aed5d5940a8b83250aa85e9d8d1dc6 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Tue, 31 Oct 2023 20:25:50 -0400 Subject: [PATCH] [Docs] Add link and remove redundant doc line --- Guides/AdjacentPairs.md | 3 --- Guides/Combinations.md | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Guides/AdjacentPairs.md b/Guides/AdjacentPairs.md index 32a6652d..09244769 100644 --- a/Guides/AdjacentPairs.md +++ b/Guides/AdjacentPairs.md @@ -5,9 +5,6 @@ Lazily iterates over tuples of adjacent elements. -This operation is available for any sequence by calling the `adjacentPairs()` -method. - ```swift let numbers = (1...5) let pairs = numbers.adjacentPairs() diff --git a/Guides/Combinations.md b/Guides/Combinations.md index 2428ae9c..ef78c1de 100644 --- a/Guides/Combinations.md +++ b/Guides/Combinations.md @@ -86,7 +86,7 @@ call to `CombinationsSequence.Iterator.next()` is an O(_n_) operation. ### Naming The parameter label in `combination(ofCount:)` is the best match for the -Swift API guidelines. A few other options were considered: +[Swift's API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/). A few other options were considered: - When the standard library uses `of` as a label, the parameter is generally the object of the operation, as in `type(of:)` and `firstIndex(of:)`, and