Skip to content

Commit 60d653f

Browse files
committed
Fix misspelling in the guides
1 parent cffb44d commit 60d653f

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

Guides/Chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ the first and second arguments conform.
4141
This method’s and type’s name match the term of art used in other languages and
4242
libraries.
4343

44-
### Comparison with other langauges
44+
### Comparison with other languages
4545

4646
**Rust:** Rust provides a `chain` function that concatenates two iterators.
4747

Guides/Chunked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The operation performed by these methods is similar to other ways of breaking a
8282
- `sliced`: *Not included in this package or the stdlib.* Breaks a collection into potentially overlapping subsequences.
8383

8484

85-
### Comparison with other langauges
85+
### Comparison with other languages
8686

8787
**Ruby:** Ruby’s `Enumerable` class defines `chunk_while` and `chunk`, which map
8888
to the proposed `chunked(by:)` and `chunked(on:)` methods.

Guides/Combinations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Swift API guidelines. A few other options were considered:
7474
- `k` is used a term of art for combinations and permutations, but isn't
7575
widely used in programming contexts.
7676

77-
### Comparison with other langauges
77+
### Comparison with other languages
7878

7979
**Rust/Ruby/Python:** Rust, Ruby, and Python all define functions with
8080
essentially the same semantics as the method described here.

Guides/Cycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ run-through of elements (the actual semantics) or starting after the first
5050
set. This ambiguity is present in all the different potential names for this
5151
function: `repeated(times:)`, `cycled(repetitions:)`, etc.
5252

53-
### Comparison with other langauges
53+
### Comparison with other languages
5454

5555
**Rust:** The `cycle` method repeats an iterator's elements forever. I don’t see
5656
anything that matches the `cycled(times:)` behavior.

Guides/Partition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ to eventually land in the standard library.
8282
`partitioningIndex(where:)` is a slight generalization of a binary search, and
8383
is an O(_log n_) operation for random-access collections; O(_n_) otherwise.
8484

85-
### Comparison with other langauges
85+
### Comparison with other languages
8686

8787
**C++:** The `<algorithm>` library defines `partition`, `stable_partition`, and
8888
`partition_point` functions with similar semantics to these. Notably, in the C++

Guides/Permutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ O(_n_) operation.
8787

8888
See the ["Naming" section for `combinations(ofCount:)`](Combinations.md#naming) for detail.
8989

90-
### Comparison with other langauges
90+
### Comparison with other languages
9191

9292
**C++:** The `<algorithm>` library defines a `next_permutation` function that
9393
advances an array of comparable values through their lexicographic orderings.

Guides/Product.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ collections. While `product` is precedented in other languages, the name has an
5858
unfortunate overlap with multiplication, where `product(numbers1, numbers2)`
5959
could be seen as producing an element-wise product.
6060

61-
### Comparison with other langauges
61+
### Comparison with other languages
6262

6363
**Ruby:** You can call the `product` method on an array, passing one or more
6464
arrays to form n-ary tuples — passing a single array gives the same semantics as

Guides/RandomSampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ returns a single random element. The `randomSample(count:)` name is chosen to
7474
align with `randomElement`, but be more distinguishable than something like
7575
`randomElements`. Other names considered include `sample` and `choose`.
7676

77-
### Comparison with other langauges
77+
### Comparison with other languages
7878

7979
**C++:** As of C++17, the `<algorithm>` library includes a `sample` function
8080
that provides linear performance. This algorithm is stable for all source

Guides/Rotate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For the range-based overloads, the label could be omitted. That is, instead of
5757
using `subrange:`, the method could be called as
5858
`numbers.rotate(0..<3, at: 2)`.
5959

60-
### Comparison with other langauges
60+
### Comparison with other languages
6161

6262
**C++:** The `<algorithm>` library defines a `rotate` function with similar
6363
semantics to this one.

Guides/Unique.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension Sequence {
3838

3939
The `uniqued` methods are O(_n_) in both time and space complexity.
4040

41-
### Comparison with other langauges
41+
### Comparison with other languages
4242

4343
**C+\+:** The `<algorithm>` library defines a `unique` function that removes
4444
consecutive equal elements.

0 commit comments

Comments
 (0)