Skip to content

Commit 32024a0

Browse files
authored
Merge pull request #117 from 8471919/fix/typo
Fix the typo from iteartor to iterator
2 parents d17ed94 + 419d5dc commit 32024a0

File tree

21 files changed

+84
-84
lines changed

21 files changed

+84
-84
lines changed

src/algorithm/heap.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { advance, distance } from "../iterator/global";
2323
/**
2424
* Make a heap.
2525
*
26-
* @param first Random access iteartor of the first position.
26+
* @param first Random access iterator of the first position.
2727
* @param last Random access iterator of the last position.
2828
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
2929
*/
@@ -54,7 +54,7 @@ export function make_heap<
5454
/**
5555
* Push an element into heap.
5656
*
57-
* @param first Random access iteartor of the first position.
57+
* @param first Random access iterator of the first position.
5858
* @param last Random access iterator of the last position.
5959
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
6060
*/
@@ -77,7 +77,7 @@ export function push_heap<
7777
/**
7878
* Pop an element from heap.
7979
*
80-
* @param first Random access iteartor of the first position.
80+
* @param first Random access iterator of the first position.
8181
* @param last Random access iterator of the last position.
8282
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
8383
*/
@@ -106,7 +106,7 @@ export function pop_heap<
106106
/**
107107
* Test whether a range is heap.
108108
*
109-
* @param first Bi-directional iteartor of the first position.
109+
* @param first Bi-directional iterator of the first position.
110110
* @param last Bi-directional iterator of the last position.
111111
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
112112
*
@@ -131,7 +131,7 @@ export function is_heap<
131131
/**
132132
* Find the first element not in heap order.
133133
*
134-
* @param first Bi-directional iteartor of the first position.
134+
* @param first Bi-directional iterator of the first position.
135135
* @param last Bi-directional iterator of the last position.
136136
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
137137
*
@@ -164,7 +164,7 @@ export function is_heap_until<
164164
/**
165165
* Sort elements of a heap.
166166
*
167-
* @param first Random access iteartor of the first position.
167+
* @param first Random access iterator of the first position.
168168
* @param last Random access iterator of the last position.
169169
* @param comp A binary function predicates *x* element would be placed before *y*. When returns `true`, then *x* precedes *y*. Default is {@link less}.
170170
*/

src/algorithm/iterations.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Pair } from "../utility/Pair";
2525
/**
2626
* Apply a function to elements in range.
2727
*
28-
* @param first Input iteartor of the first position.
28+
* @param first Input iterator of the first position.
2929
* @param last Input iterator of the last position.
3030
* @param fn The function to apply.
3131
*
@@ -45,7 +45,7 @@ export function for_each<
4545
/**
4646
* Apply a function to elements in steps.
4747
*
48-
* @param first Input iteartor of the starting position.
48+
* @param first Input iterator of the starting position.
4949
* @param n Steps to maximum advance.
5050
* @param fn The function to apply.
5151
*
@@ -70,7 +70,7 @@ export function for_each_n<
7070
/**
7171
* Test whether all elements meet a specific condition.
7272
*
73-
* @param first Input iteartor of the first position.
73+
* @param first Input iterator of the first position.
7474
* @param last Input iterator of the last position.
7575
* @param pred A function predicates the specific condition.
7676
*
@@ -94,7 +94,7 @@ export function all_of<
9494
/**
9595
* Test whether any element meets a specific condition.
9696
*
97-
* @param first Input iteartor of the first position.
97+
* @param first Input iterator of the first position.
9898
* @param last Input iterator of the last position.
9999
* @param pred A function predicates the specific condition.
100100
*
@@ -118,7 +118,7 @@ export function any_of<
118118
/**
119119
* Test whether any element doesn't meet a specific condition.
120120
*
121-
* @param first Input iteartor of the first position.
121+
* @param first Input iterator of the first position.
122122
* @param last Input iterator of the last position.
123123
* @param pred A function predicates the specific condition.
124124
*
@@ -139,7 +139,7 @@ export function none_of<
139139
/**
140140
* Test whether two ranges are equal.
141141
*
142-
* @param first1 Input iteartor of the first position of the 1st range.
142+
* @param first1 Input iterator of the first position of the 1st range.
143143
* @param last1 Input iterator of the last position of the 1st range.
144144
* @param first2 Input iterator of the first position of the 2nd range.
145145
* @param pred A binary function predicates two arguments are equal.
@@ -162,7 +162,7 @@ export function equal<
162162
/**
163163
* Test whether two ranges are equal.
164164
*
165-
* @param first1 Input iteartor of the first position of the 1st range.
165+
* @param first1 Input iterator of the first position of the 1st range.
166166
* @param last1 Input iterator of the last position of the 1st range.
167167
* @param first2 Input iterator of the first position of the 2nd range.
168168
* @param pred A binary function predicates two arguments are equal.
@@ -214,7 +214,7 @@ export function equal<
214214
/**
215215
* Compare lexicographically.
216216
*
217-
* @param first1 Input iteartor of the first position of the 1st range.
217+
* @param first1 Input iterator of the first position of the 1st range.
218218
* @param last1 Input iterator of the last position of the 1st range.
219219
* @param first2 Input iterator of the first position of the 2nd range.
220220
* @param last2 Input iterator of the last position of the 2nd range.
@@ -253,7 +253,7 @@ export function lexicographical_compare<
253253
/**
254254
* Find a value in range.
255255
*
256-
* @param first Input iteartor of the first position.
256+
* @param first Input iterator of the first position.
257257
* @param last Input iterator of the last position.
258258
* @param val The value to find.
259259
*
@@ -274,7 +274,7 @@ export function find<
274274
/**
275275
* Find a matched condition in range.
276276
*
277-
* @param first Input iteartor of the first position.
277+
* @param first Input iterator of the first position.
278278
* @param last Input iterator of the last position.
279279
* @param pred A function predicates the specific condition.
280280
*
@@ -298,7 +298,7 @@ export function find_if<
298298
/**
299299
* Find a mismatched condition in range.
300300
*
301-
* @param first Input iteartor of the first position.
301+
* @param first Input iterator of the first position.
302302
* @param last Input iterator of the last position.
303303
* @param pred A function predicates the specific condition.
304304
*
@@ -319,7 +319,7 @@ export function find_if_not<
319319
/**
320320
* Find the last sub range.
321321
*
322-
* @param first1 Input iteartor of the first position of the 1st range.
322+
* @param first1 Input iterator of the first position of the 1st range.
323323
* @param last1 Input iterator of the last position of the 1st range.
324324
* @param first2 Input iterator of the first position of the 2nd range.
325325
* @param last2 Input iterator of the last position of the 2nd range.
@@ -343,7 +343,7 @@ export function find_end<
343343
/**
344344
* Find the last sub range.
345345
*
346-
* @param first1 Input iteartor of the first position of the 1st range.
346+
* @param first1 Input iterator of the first position of the 1st range.
347347
* @param last1 Input iterator of the last position of the 1st range.
348348
* @param first2 Input iterator of the first position of the 2nd range.
349349
* @param last2 Input iterator of the last position of the 2nd range.
@@ -409,7 +409,7 @@ export function find_end<
409409
/**
410410
* Find the first sub range.
411411
*
412-
* @param first1 Input iteartor of the first position of the 1st range.
412+
* @param first1 Input iterator of the first position of the 1st range.
413413
* @param last1 Input iterator of the last position of the 1st range.
414414
* @param first2 Input iterator of the first position of the 2nd range.
415415
* @param last2 Input iterator of the last position of the 2nd range.
@@ -433,7 +433,7 @@ export function find_first_of<
433433
/**
434434
* Find the first sub range.
435435
*
436-
* @param first1 Input iteartor of the first position of the 1st range.
436+
* @param first1 Input iterator of the first position of the 1st range.
437437
* @param last1 Input iterator of the last position of the 1st range.
438438
* @param first2 Input iterator of the first position of the 2nd range.
439439
* @param last2 Input iterator of the last position of the 2nd range.
@@ -486,7 +486,7 @@ export function find_first_of<
486486
/**
487487
* Find the first adjacent element.
488488
*
489-
* @param first Input iteartor of the first position.
489+
* @param first Input iterator of the first position.
490490
* @param last Input iterator of the last position.
491491
* @param pred A binary function predicates two arguments are equal. Default is {@link equal_to}.
492492
*
@@ -517,7 +517,7 @@ export function adjacent_find<
517517
/**
518518
* Search sub range.
519519
*
520-
* @param first1 Forward iteartor of the first position of the 1st range.
520+
* @param first1 Forward iterator of the first position of the 1st range.
521521
* @param last1 Forward iterator of the last position of the 1st range.
522522
* @param first2 Forward iterator of the first position of the 2nd range.
523523
* @param last2 Forward iterator of the last position of the 2nd range.
@@ -541,7 +541,7 @@ export function search<
541541
/**
542542
* Search sub range.
543543
*
544-
* @param first1 Forward iteartor of the first position of the 1st range.
544+
* @param first1 Forward iterator of the first position of the 1st range.
545545
* @param last1 Forward iterator of the last position of the 1st range.
546546
* @param first2 Forward iterator of the first position of the 2nd range.
547547
* @param last2 Forward iterator of the last position of the 2nd range.
@@ -604,7 +604,7 @@ export function search<
604604
/**
605605
* Search specific and repeated elements.
606606
*
607-
* @param first Forward iteartor of the first position.
607+
* @param first Forward iterator of the first position.
608608
* @param last Forward iterator of the last position.
609609
* @param count Count to be repeated.
610610
* @param val Value to search.
@@ -641,7 +641,7 @@ export function search_n<
641641
/**
642642
* Find the first mistmached position between two ranges.
643643
*
644-
* @param first1 Input iteartor of the first position of the 1st range.
644+
* @param first1 Input iterator of the first position of the 1st range.
645645
* @param last1 Input iterator of the last position of the 1st range.
646646
* @param first2 Input iterator of the first position of the 2nd range.
647647
*
@@ -663,7 +663,7 @@ export function mismatch<
663663
/**
664664
* Find the first mistmached position between two ranges.
665665
*
666-
* @param first1 Input iteartor of the first position of the 1st range.
666+
* @param first1 Input iterator of the first position of the 1st range.
667667
* @param last1 Input iterator of the last position of the 1st range.
668668
* @param first2 Input iterator of the first position of the 2nd range.
669669
* @param pred A binary function predicates two arguments are equal.
@@ -716,7 +716,7 @@ export function mismatch<
716716
/**
717717
* Count matched value in range.
718718
*
719-
* @param first Input iteartor of the first position.
719+
* @param first Input iterator of the first position.
720720
* @param last Input iterator of the last position.
721721
* @param val The value to count.
722722
*
@@ -737,7 +737,7 @@ export function count<
737737
/**
738738
* Count matched condition in range.
739739
*
740-
* @param first Input iteartor of the first position.
740+
* @param first Input iterator of the first position.
741741
* @param last Input iterator of the last position.
742742
* @param pred A function predicates the specific condition.
743743
*

src/algorithm/mathematics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function clamp<T>(v: T, lo: T, hi: T, comp: Comparator<T> = less): T {
184184
/**
185185
* Test whether two ranges are in permutation relationship.
186186
*
187-
* @param first1 Forward iteartor of the first position of the 1st range.
187+
* @param first1 Forward iterator of the first position of the 1st range.
188188
* @param last1 Forward iterator of the last position of the 1st range.
189189
* @param first2 Forward iterator of the first position of the 2nd range.
190190
* @param pred A binary function predicates two arguments are equal. Default is {@link equal_to}.

src/algorithm/merge.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { copy } from "./modifiers";
2727
/**
2828
* Merge two sorted ranges.
2929
*
30-
* @param first1 Input iteartor of the first position of the 1st range.
30+
* @param first1 Input iterator of the first position of the 1st range.
3131
* @param last1 Input iterator of the last position of the 1st range.
3232
* @param first2 Input iterator of the first position of the 2nd range.
3333
* @param last2 Input iterator of the last position of the 2nd range.
@@ -103,7 +103,7 @@ export function inplace_merge<
103103
/**
104104
* Test whether two sorted ranges are in inclusion relationship.
105105
*
106-
* @param first1 Input iteartor of the first position of the 1st range.
106+
* @param first1 Input iterator of the first position of the 1st range.
107107
* @param last1 Input iterator of the last position of the 1st range.
108108
* @param first2 Input iterator of the first position of the 2nd range.
109109
* @param last2 Input iterator of the last position of the 2nd range.
@@ -138,7 +138,7 @@ export function includes<
138138
/**
139139
* Combine two sorted ranges to union relationship.
140140
*
141-
* @param first1 Input iteartor of the first position of the 1st range.
141+
* @param first1 Input iterator of the first position of the 1st range.
142142
* @param last1 Input iterator of the last position of the 1st range.
143143
* @param first2 Input iterator of the first position of the 2nd range.
144144
* @param last2 Input iterator of the last position of the 2nd range.
@@ -190,7 +190,7 @@ export function set_union<
190190
/**
191191
* Combine two sorted ranges to intersection relationship.
192192
*
193-
* @param first1 Input iteartor of the first position of the 1st range.
193+
* @param first1 Input iterator of the first position of the 1st range.
194194
* @param last1 Input iterator of the last position of the 1st range.
195195
* @param first2 Input iterator of the first position of the 2nd range.
196196
* @param last2 Input iterator of the last position of the 2nd range.
@@ -233,7 +233,7 @@ export function set_intersection<
233233
/**
234234
* Combine two sorted ranges to difference relationship.
235235
*
236-
* @param first1 Input iteartor of the first position of the 1st range.
236+
* @param first1 Input iterator of the first position of the 1st range.
237237
* @param last1 Input iterator of the last position of the 1st range.
238238
* @param first2 Input iterator of the first position of the 2nd range.
239239
* @param last2 Input iterator of the last position of the 2nd range.
@@ -277,7 +277,7 @@ export function set_difference<
277277
/**
278278
* Combine two sorted ranges to symmetric difference relationship.
279279
*
280-
* @param first1 Input iteartor of the first position of the 1st range.
280+
* @param first1 Input iterator of the first position of the 1st range.
281281
* @param last1 Input iterator of the last position of the 1st range.
282282
* @param first2 Input iterator of the first position of the 2nd range.
283283
* @param last2 Input iterator of the last position of the 2nd range.

0 commit comments

Comments
 (0)